Fix new clippy lint in pokedex example

This commit is contained in:
Héctor Ramón Jiménez 2023-07-13 16:40:47 +02:00
parent fca8373516
commit dc0ebdc525
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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)
}; };