Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-uni committed Oct 18, 2024
1 parent 6fefeb1 commit 1286b8a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions serde/src/private/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ mod content {
use crate::de::value::{MapDeserializer, SeqDeserializer};
use crate::de::{
self, size_hint, Deserialize, DeserializeSeed, Deserializer, EnumAccess, Expected,
IgnoredAny, MapAccess, SeqAccess, Unexpected, Visitor,
IgnoredAny, MapAccess, SeqAccess, Unexpected, VariantAccess, Visitor,
};

/// Used from generated code to buffer the contents of the Deserializer when
Expand Down Expand Up @@ -529,12 +529,14 @@ mod content {
where
V: EnumAccess<'de>,
{
use crate::de::VariantAccess;
let (key, data) = tri!(visitor.variant::<String>());
Ok(Content::Map(vec![(
Content::String(key),
tri!(data.newtype_variant::<Self::Value>()),
)]))
Ok(Content::Map(
[(
Content::String(key),
tri!(data.newtype_variant::<Self::Value>()),
)]
.into(),
))
}
}

Expand Down

0 comments on commit 1286b8a

Please sign in to comment.