Use `crate::prelude::*` rather than specific imports
[rust-lightning] / lightning / src / lib.rs
index 29fe76b49adb2ffb8a7e3d7ffc945c6575f06cbf..3b5a4ebfbf18171c9fc95b5d201693a171858b68 100644 (file)
@@ -165,12 +165,15 @@ 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::{TryFrom, TryInto};
+       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::*;