Fix new clippy lint in pokedex example
This commit is contained in:
parent
fca8373516
commit
dc0ebdc525
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ impl Pokemon {
|
||||||
}
|
}
|
||||||
|
|
||||||
let id = {
|
let id = {
|
||||||
let mut rng = rand::rngs::OsRng::default();
|
let mut rng = rand::rngs::OsRng;
|
||||||
|
|
||||||
rng.gen_range(0, Pokemon::TOTAL)
|
rng.gen_range(0, Pokemon::TOTAL)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue