Skip to content

Commit 4ae434d

Browse files
committed
Add TryClone and TryToOwned to our prelude
The non-`Try` versions are both in `std`'s prelude, so it makes sense to add them to our prelude.
1 parent d42d0b6 commit 4ae434d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/environ/src/prelude.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
//!
2020
//! and then `use crate::*` works as usual.
2121
22-
pub use crate::collections::{EntitySet, TryNew, try_new};
22+
pub use crate::collections::{
23+
EntitySet, TryClone, TryCollect, TryExtend, TryFromIterator, TryNew, TryToOwned, try_new,
24+
};
2325
pub use crate::error::{Context, Error, Result, bail, ensure, format_err};
2426
pub use alloc::borrow::ToOwned;
2527
pub use alloc::boxed::Box;
@@ -28,4 +30,3 @@ pub use alloc::string::{String, ToString};
2830
pub use alloc::vec;
2931
pub use alloc::vec::Vec;
3032
pub use wasmparser::collections::{IndexMap, IndexSet};
31-
pub use wasmtime_core::alloc::{TryCollect, TryExtend, TryFromIterator};

0 commit comments

Comments
 (0)