Skip to content

Commit bcd4157

Browse files
committed
update to and support rand 0.9
1 parent d012034 commit bcd4157

File tree

3 files changed

+101
-21
lines changed

3 files changed

+101
-21
lines changed

Cargo.lock

Lines changed: 98 additions & 18 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
@@ -32,7 +32,7 @@ lscolors = { version = "0.17.0", features = ["nu-ansi-term"] }
3232
notify = "^6"
3333
open = "^5"
3434
phf = { version = "^0", features = ["macros"], optional = true }
35-
rand = "^0"
35+
rand = "^0.9"
3636
ratatui-image = { version = "1.0.5", default-features = false, features = ["termion", "rustix", "serde"] }
3737
regex = "1.9.3"
3838
rustyline = "^12"

src/commands/bulk_rename.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pub fn _bulk_rename(app_state: &mut AppState) -> AppResult {
2727
/* generate a random file name to write to */
2828
let mut rand_str = String::with_capacity(FILE_PREFIX.len() + RAND_STR_LEN);
2929
rand_str.push_str(FILE_PREFIX);
30-
rand::thread_rng()
31-
.sample_iter(&rand::distributions::Alphanumeric)
30+
rand::rng()
31+
.sample_iter(&rand::distr::Alphanumeric)
3232
.take(RAND_STR_LEN)
3333
.for_each(|ch| rand_str.push(ch as char));
3434

0 commit comments

Comments
 (0)