Work around prelude redundant import warnings
Before adoption: this commit came in with the history the project adopted, so no landing records it.
https://github.com/rust-lang/rust/pull/117772 warning: the item `String` is imported redundantly --> src/ensure.rs:2:5 | 2 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ | ::: 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 `String` is already defined here | = note: `#[warn(unused_imports)]` on by default warning: the item `Box` is imported redundantly --> src/error.rs:7:5 | 7 | use alloc::boxed::Box; | ^^^^^^^^^^^^^^^^^ | ::: 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 `Box` is already defined here warning: the item `Box` is imported redundantly --> src/ptr.rs:1:5 | 1 | use alloc::boxed::Box; | ^^^^^^^^^^^^^^^^^ | ::: 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 `Box` is already defined here
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+12 added−3 removed
- tests:+0 added−1 removed
- other:+12 added−2 removed