update dependencies versions
This commit is contained in:
1 parent
edae46d34b
commit
ee41462504
2 files changed
+5
-5
No files matched your search
+3
-3
@@ -4,6 +4,6 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
crossterm = "0.27"
|
||||
unicode-width = "0.1"
|
||||
rand = "0.8"
|
||||
crossterm = "0.29"
|
||||
unicode-width = "0.2"
|
||||
rand = "0.9"
|
||||
+2
-2
@@ -4,7 +4,7 @@
|
||||
use rand::Rng;
|
||||
|
||||
pub fn get_miku_art() -> Vec<&'static str> {
|
||||
let mut rng = rand::thread_rng();
|
||||
let mut rng = rand::rng();
|
||||
let styles = vec![
|
||||
//MARK: small art
|
||||
vec![
|
||||
@@ -504,6 +504,6 @@ pub fn get_miku_art() -> Vec<&'static str> {
|
||||
],
|
||||
];
|
||||
|
||||
let selected_style = rng.gen_range(0..styles.len());
|
||||
let selected_style = rng.random_range(0..styles.len());
|
||||
styles[selected_style].clone()
|
||||
}
|
||||
Reference in new issue
Block a user