fix: remove duplicate prelude imports causing wasm32v1-none ambiguity

The redundant `use ::core::prelude::rust_2021::*;` was causing
ambiguity errors because `crate::lib::*` already imports `Some`,
`None`, `Option` via `crate_root.rs`.

This fixes cargo clippy/check failures on wasm32 targets.

Files fixed:
- serde_core/src/de/mod.rs
- serde_core/src/de/impls.rs
- serde_core/src/ser/mod.rs
- serde_core/src/ser/impls.rs
- serde_core/src/ser/fmt.rs
- serde_core/src/ser/impossible.rs
- serde_core/src/private/doc.rs
This commit is contained in:
2026-01-24 19:15:40 +03:00
parent c03215db8d
commit 0a75fdd839
7 changed files with 0 additions and 32 deletions
-6
View File
@@ -1,11 +1,5 @@
use crate::lib::*;
// Explicit prelude import for wasm32v1-none and other no_std targets
// Even when "std" feature is enabled (due to Cargo feature unification),
// the prelude may not be injected on wasm32v1-none target
#[allow(unused_imports)]
use ::core::prelude::rust_2021::*;
use crate::de::{
Deserialize, Deserializer, EnumAccess, Error, MapAccess, SeqAccess, Unexpected, VariantAccess,
Visitor,
-4
View File
@@ -114,10 +114,6 @@
use crate::lib::*;
// Explicit prelude import for wasm32v1-none and other no_std targets
#[allow(unused_imports)]
use ::core::prelude::rust_2021::*;
////////////////////////////////////////////////////////////////////////////////
pub mod value;
-4
View File
@@ -2,10 +2,6 @@
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;
#[doc(hidden)]
-4
View File
@@ -1,9 +1,5 @@
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::{Error, Impossible, Serialize, Serializer};
impl Error for fmt::Error {
-6
View File
@@ -1,11 +1,5 @@
use crate::lib::*;
// Explicit prelude import for wasm32v1-none and other no_std targets
// Even when "std" feature is enabled (due to Cargo feature unification),
// the prelude may not be injected on wasm32v1-none target
#[allow(unused_imports)]
use ::core::prelude::rust_2021::*;
use crate::ser::{Error, Serialize, SerializeTuple, Serializer};
////////////////////////////////////////////////////////////////////////////////
-4
View File
@@ -2,10 +2,6 @@
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, SerializeMap, SerializeSeq, SerializeStruct, SerializeStructVariant,
SerializeTuple, SerializeTupleStruct, SerializeTupleVariant,
-4
View File
@@ -109,10 +109,6 @@
use crate::lib::*;
// Explicit prelude import for wasm32v1-none and other no_std targets
#[allow(unused_imports)]
use ::core::prelude::rust_2021::*;
mod fmt;
mod impls;
mod impossible;