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

Lines changed: 5 additions & 5 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy