-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove imports that are reported as unused by the nightly compiler, override the lint for the vec macro import that is actually used.
- Loading branch information
Showing
3 changed files
with
1 addition
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
// Re-export according to alloc::prelude::v1 because it is not yet stabilized | ||
// https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html | ||
#[allow(unused_imports)] | ||
pub use alloc::{ | ||
borrow::ToOwned, | ||
boxed::Box, | ||
format, | ||
string::{String, ToString}, | ||
vec, | ||
vec::Vec, | ||
}; | ||
// will be included in 2021 edition. | ||
pub use core::convert::{TryFrom, TryInto}; | ||
pub use core::prelude::v1::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters