Version bump dependencies
This commit is contained in:
parent
abf2cac093
commit
66f40b4aa4
8 changed files with 205 additions and 203 deletions
|
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue