Skip to content

Commit f5d8ae4

Browse files
committed
Resolve prelude redundant import warnings
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
1 parent 1d54973 commit f5d8ae4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

serde/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,16 @@ mod lib {
179179
pub use self::core::{cmp, mem, slice};
180180

181181
pub use self::core::cell::{Cell, RefCell};
182-
pub use self::core::clone::{self, Clone};
182+
pub use self::core::clone;
183183
pub use self::core::cmp::Reverse;
184-
pub use self::core::convert::{self, From, Into};
185-
pub use self::core::default::{self, Default};
184+
pub use self::core::convert;
185+
pub use self::core::default;
186186
pub use self::core::fmt::{self, Debug, Display, Write as FmtWrite};
187187
pub use self::core::marker::{self, PhantomData};
188188
pub use self::core::num::Wrapping;
189189
pub use self::core::ops::{Bound, Range, RangeFrom, RangeInclusive, RangeTo};
190-
pub use self::core::option::{self, Option};
191-
pub use self::core::result::{self, Result};
190+
pub use self::core::option;
191+
pub use self::core::result;
192192
pub use self::core::time::Duration;
193193

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

0 commit comments

Comments
 (0)