Version bump dependencies

This commit is contained in:
hal8174 2025-02-06 22:04:28 +01:00
parent abf2cac093
commit 66f40b4aa4
8 changed files with 205 additions and 203 deletions

View file

@ -5,13 +5,13 @@ edition = "2024"
[dev-dependencies]
criterion = "0.3"
criterion = "0.5"
[dependencies]
clap = { version = "4.5.26", features = ["derive"] }
image = "0.25.5"
proptest = "1.5.0"
proptest-derive = "0.5.0"
rand = "0.8.5"
rand = "0.9.0"
serde = { version = "1.0.217", features = ["derive"] }
termcolor = "1.4.1"

View file

@ -86,7 +86,7 @@ impl Direction {
}
}
impl rand::prelude::Distribution<Direction> for rand::distributions::Standard {
impl rand::prelude::Distribution<Direction> for rand::distr::StandardUniform {
fn sample<R: rand::Rng + ?Sized>(&self, rng: &mut R) -> Direction {
let a = [
Direction::Up,
@ -94,7 +94,7 @@ impl rand::prelude::Distribution<Direction> for rand::distributions::Standard {
Direction::Down,
Direction::Left,
];
let r = rng.gen_range(0..4);
let r = rng.random_range(0..4);
a[r]
}
}