Skip to content

Commit

Permalink
Fix unused imports
Browse files Browse the repository at this point in the history
    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
  • Loading branch information
dtolnay committed Oct 25, 2023
1 parent 8de84b7 commit bb4135c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bb4135c

Please sign in to comment.