Skip to content

Commit

Permalink
import is needed for newtype_variant
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-uni authored Oct 18, 2024
1 parent 6fefeb1 commit 61720b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion serde/src/private/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,10 @@ mod content {
where
V: EnumAccess<'de>,
{
#[allow(unused_imports)]
use crate::de::VariantAccess;
let (key, data) = tri!(visitor.variant::<String>());
Ok(Content::Map(vec![(
Ok(Content::Map(alloc::vec![(
Content::String(key),
tri!(data.newtype_variant::<Self::Value>()),
)]))
Expand Down

0 comments on commit 61720b2

Please sign in to comment.