Skip to content

Commit 3b25329

Browse files
committed
rand: re-export UnwrapMut & UnwrapErr
1 parent ee1d96f commit 3b25329

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You may also find the [Upgrade Guide](https://rust-random.github.io/book/update.
1111
## [Unreleased]
1212
- Fix feature `simd_support` for recent nightly rust (#1586)
1313
- Add `Alphabetic` distribution. (#1587)
14+
- Re-export `UnwrapMut` and `UnwrapErr` from `rand_core` (#1594)
1415

1516
## [0.9.0] - 2025-01-27
1617
### Security and unsafe

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ members = [
7171
exclude = ["benches", "distr_test"]
7272

7373
[dependencies]
74-
rand_core = { path = "rand_core", version = "0.9.0", default-features = false }
74+
rand_core = { path = "rand_core", version = "0.9.1", default-features = false }
7575
log = { version = "0.4.4", optional = true }
7676
serde = { version = "1.0.103", features = ["derive"], optional = true }
7777
rand_chacha = { path = "rand_chacha", version = "0.9.0", default-features = false, optional = true }

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ macro_rules! error { ($($x:tt)*) => (
9797
) }
9898

9999
// Re-exports from rand_core
100-
pub use rand_core::{CryptoRng, RngCore, SeedableRng, TryCryptoRng, TryRngCore};
100+
pub use rand_core::{
101+
CryptoRng, RngCore, SeedableRng, TryCryptoRng, TryRngCore, UnwrapErr, UnwrapMut,
102+
};
101103

102104
// Public modules
103105
pub mod distr;

0 commit comments

Comments
 (0)