Add prelude imports to nested content modules

This commit is contained in:
2026-01-09 16:11:14 +03:00
parent ee2259c972
commit 10dc33548a
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -216,6 +216,10 @@ mod content {
use crate::lib::*;
// Explicit prelude import for wasm32v1-none and other no_std targets
#[allow(unused_imports)]
use ::core::prelude::rust_2021::*;
use crate::de::{
self, Deserialize, DeserializeSeed, Deserializer, EnumAccess, Expected, IgnoredAny,
MapAccess, SeqAccess, Unexpected, Visitor,
+4
View File
@@ -343,6 +343,10 @@ where
mod content {
use crate::lib::*;
// Explicit prelude import for wasm32v1-none and other no_std targets
#[allow(unused_imports)]
use ::core::prelude::rust_2021::*;
use crate::ser::{self, Serialize, Serializer};
pub struct SerializeTupleVariantAsMapValue<M> {