Skip to content

Commit

Permalink
Fix new clippy lint in pokedex example
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jul 13, 2023
1 parent fca8373 commit dc0ebdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pokedex/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl Pokemon {
}

let id = {
let mut rng = rand::rngs::OsRng::default();
let mut rng = rand::rngs::OsRng;

rng.gen_range(0, Pokemon::TOTAL)
};
Expand Down

0 comments on commit dc0ebdc

Please sign in to comment.