Skip to content

Commit

Permalink
Fix prelude imports
Browse files Browse the repository at this point in the history
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
mzabaluev committed Nov 9, 2023
1 parent e3426d2 commit 8c37001
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion config/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html
pub use alloc::{
borrow::ToOwned,
boxed::Box,
format,
string::{String, ToString},
vec,
Expand Down
5 changes: 1 addition & 4 deletions light-client-verifier/src/prelude.rs
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::*;
2 changes: 0 additions & 2 deletions proto/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
// https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html
pub use alloc::{
borrow::ToOwned,
boxed::Box,
format,
string::{String, ToString},
vec,
vec::Vec,
};
pub use core::prelude::v1::*;

0 comments on commit 8c37001

Please sign in to comment.