Skip to content

Commit

Permalink
Resolve prelude redundant import warnings
Browse files Browse the repository at this point in the history
    warning: the item `Into` is imported redundantly
       --> serde/src/lib.rs:184:47
        |
    184 |     pub use self::core::convert::{self, From, Into};
        |                                               ^^^^
        |
       ::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:115:13
        |
    115 |     pub use super::v1::*;
        |             --------- the item `Into` is already defined here
        |
        = note: `#[warn(unused_imports)]` on by default
  • Loading branch information
dtolnay committed Feb 20, 2024
1 parent 1d54973 commit f5d8ae4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,16 @@ mod lib {
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::clone;
pub use self::core::cmp::Reverse;
pub use self::core::convert::{self, From, Into};
pub use self::core::default::{self, Default};
pub use self::core::convert;
pub use self::core::default;
pub use self::core::fmt::{self, Debug, Display, Write as FmtWrite};
pub use self::core::marker::{self, PhantomData};
pub use self::core::num::Wrapping;
pub use self::core::ops::{Bound, Range, RangeFrom, RangeInclusive, RangeTo};
pub use self::core::option::{self, Option};
pub use self::core::result::{self, Result};
pub use self::core::option;
pub use self::core::result;
pub use self::core::time::Duration;

#[cfg(all(feature = "alloc", not(feature = "std")))]
Expand Down

0 comments on commit f5d8ae4

Please sign in to comment.