Fixed some warnings
Some checks failed
Rust Build / Check (pull_request) Failing after 32s
Rust Build / Test Suite (pull_request) Failing after 25s
Rust Build / Rustfmt (pull_request) Successful in 25s
Rust Build / Clippy (pull_request) Failing after 25s
Rust Build / build (pull_request) Failing after 36s

This commit is contained in:
2025-03-21 21:38:10 -04:00
parent d0e0d8fa2d
commit ce13ca6a77

View File

@@ -170,10 +170,10 @@ impl Song {
if randomize { if randomize {
let some_chars: String = String::from("abcdefghij0123456789"); let some_chars: String = String::from("abcdefghij0123456789");
let mut rng = rand::thread_rng(); let mut rng = rand::rng();
for _i in 0..filename_len { for _i in 0..filename_len {
let random_number: i32 = rng.gen_range(0..=19); let random_number: i32 = rng.random_range(0..=19);
let index = random_number as usize; let index = random_number as usize;
let rando_char = some_chars.chars().nth(index); let rando_char = some_chars.chars().nth(index);