mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Add more std
prelude items to crate::prelude
New rustc beta now warns on duplicate imports when one of the imports is from a wildcard import or the default prelude. Thus, for simplicity, we need to make our `crate::prelude` mostly identical to the `std` one, allowing us to always simply use the `crate::prelude` and let it decide if we need to import anything.
This commit is contained in:
parent
cd327089a8
commit
061d396b07
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,9 @@ mod prelude {
|
|||
pub use alloc::borrow::ToOwned;
|
||||
pub use alloc::string::ToString;
|
||||
|
||||
pub use core::convert::{TryFrom, TryInto};
|
||||
pub use core::marker::Sized;
|
||||
|
||||
pub(crate) use crate::util::hash_tables::*;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue