Skip to content

Commit 25a7fd1

Browse files
committed
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.
1 parent a061d71 commit 25a7fd1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ mod prelude {
170170
pub use alloc::borrow::ToOwned;
171171
pub use alloc::string::ToString;
172172

173+
pub use core::convert::{TryFrom, TryInto};
174+
pub use core::marker::Sized;
175+
173176
pub(crate) use crate::util::hash_tables::*;
174177
}
175178

0 commit comments

Comments
 (0)