Skip to content

Commit 9d19c7b

Browse files
committed
chore(deps): upgrade rand to 0.9.1
1 parent 064d4a8 commit 9d19c7b

3 files changed

Lines changed: 34 additions & 16 deletions

File tree

Cargo.lock

Lines changed: 31 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ build-fs-tree = "^0.7.1"
7272
command-extra = "^1.0.0"
7373
maplit = "^1.0.2"
7474
pretty_assertions = "^1.4.1"
75-
rand = "^0.8.5"
75+
rand = "^0.9.1"

tests/_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use parallel_disk_usage::{
1111
};
1212
use pipe_trait::Pipe;
1313
use pretty_assertions::assert_eq;
14-
use rand::{distributions::Alphanumeric, thread_rng, Rng};
14+
use rand::{distr::Alphanumeric, rng, Rng};
1515
use rayon::prelude::*;
1616
use std::{
1717
env::temp_dir,
@@ -39,7 +39,7 @@ pub struct Temp(PathBuf);
3939
impl Temp {
4040
/// Create a temporary directory.
4141
pub fn new_dir() -> Result<Self, Error> {
42-
let path = thread_rng()
42+
let path = rng()
4343
.sample_iter(&Alphanumeric)
4444
.take(15)
4545
.map(char::from)

0 commit comments

Comments
 (0)