From 61720b2e4c2d2f33aa55773e64f29a3b66ebd904 Mon Sep 17 00:00:00 2001 From: frederik-uni <147479464+frederik-uni@users.noreply.github.com> Date: Sat, 19 Oct 2024 01:33:51 +0200 Subject: [PATCH] import is needed for newtype_variant --- serde/src/private/de.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serde/src/private/de.rs b/serde/src/private/de.rs index c30cc7373..f8ce6797f 100644 --- a/serde/src/private/de.rs +++ b/serde/src/private/de.rs @@ -529,9 +529,10 @@ mod content { where V: EnumAccess<'de>, { + #[allow(unused_imports)] use crate::de::VariantAccess; let (key, data) = tri!(visitor.variant::()); - Ok(Content::Map(vec![( + Ok(Content::Map(alloc::vec![( Content::String(key), tri!(data.newtype_variant::()), )]))