Use `crate::prelude::*` rather than specific imports
[rust-lightning] / lightning / src / lib.rs
index 1adf3786b76d48a571665e73e2e8a551276a73f8..3b5a4ebfbf18171c9fc95b5d201693a171858b68 100644 (file)
@@ -165,11 +165,17 @@ mod io_extras {
 }
 
 mod prelude {
+       #![allow(unused_imports)]
+
        pub use alloc::{vec, vec::Vec, string::String, collections::VecDeque, boxed::Box};
 
        pub use alloc::borrow::ToOwned;
        pub use alloc::string::ToString;
 
+       pub use core::convert::{AsMut, AsRef, TryFrom, TryInto};
+       pub use core::default::Default;
+       pub use core::marker::Sized;
+
        pub(crate) use crate::util::hash_tables::*;
 }