Skip to content

Commit 1286b8a

Browse files
committed
fix action
1 parent 6fefeb1 commit 1286b8a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

serde/src/private/de.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ mod content {
212212
use crate::de::value::{MapDeserializer, SeqDeserializer};
213213
use crate::de::{
214214
self, size_hint, Deserialize, DeserializeSeed, Deserializer, EnumAccess, Expected,
215-
IgnoredAny, MapAccess, SeqAccess, Unexpected, Visitor,
215+
IgnoredAny, MapAccess, SeqAccess, Unexpected, VariantAccess, Visitor,
216216
};
217217

218218
/// Used from generated code to buffer the contents of the Deserializer when
@@ -529,12 +529,14 @@ mod content {
529529
where
530530
V: EnumAccess<'de>,
531531
{
532-
use crate::de::VariantAccess;
533532
let (key, data) = tri!(visitor.variant::<String>());
534-
Ok(Content::Map(vec![(
535-
Content::String(key),
536-
tri!(data.newtype_variant::<Self::Value>()),
537-
)]))
533+
Ok(Content::Map(
534+
[(
535+
Content::String(key),
536+
tri!(data.newtype_variant::<Self::Value>()),
537+
)]
538+
.into(),
539+
))
538540
}
539541
}
540542

0 commit comments

Comments
 (0)