From bb4135cae830e27135c5ba0a3f23512634dfd7c6 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 24 Oct 2023 22:32:19 -0700 Subject: [PATCH] Fix unused imports warning: unused imports: `cmp`, `mem`, `slice` --> serde/src/lib.rs:171:26 | 171 | pub use self::core::{cmp, iter, mem, num, ptr, slice, str}; | ^^^ ^^^ ^^^^^ | = note: `#[warn(unused_imports)]` on by default --- serde/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/serde/src/lib.rs b/serde/src/lib.rs index 2d93a423..f513a291 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -168,11 +168,14 @@ mod lib { pub use std::*; } - pub use self::core::{cmp, iter, mem, num, ptr, slice, str}; pub use self::core::{f32, f64}; pub use self::core::{i16, i32, i64, i8, isize}; + pub use self::core::{iter, num, ptr, str}; pub use self::core::{u16, u32, u64, u8, usize}; + #[cfg(any(feature = "std", feature = "alloc"))] + pub use self::core::{cmp, mem, slice}; + pub use self::core::cell::{Cell, RefCell}; pub use self::core::clone::{self, Clone}; pub use self::core::cmp::Reverse;