File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::{
33 sync:: { Arc , Mutex } ,
44} ;
55
6- use rand:: Rng ;
6+ use rand:: { Rng , RngExt as _ } ;
77
88fn generate_name < R : Rng > ( rng : & mut R , used_names : & mut HashSet < String > ) -> String {
99 loop {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ edition = "2024"
77# The full list of available libraries is here:
88# https://github.com/exercism/rust-test-runner/blob/main/local-registry/Cargo.toml
99[dependencies ]
10- rand = " 0.9 "
10+ rand = " 0.10 "
1111
1212[lints .clippy ]
1313new_without_default = " allow"
Original file line number Diff line number Diff line change 1- use rand:: Rng ;
1+ use rand:: RngExt as _ ;
22
33pub fn encode_random ( s : & str ) -> ( String , String ) {
44 let mut r = rand:: rng ( ) ;
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ edition = "2024"
77# The full list of available libraries is here:
88# https://github.com/exercism/rust-test-runner/blob/main/local-registry/Cargo.toml
99[dependencies ]
10- rand = " 0.9 "
10+ rand = " 0.10 "
You can’t perform that action at this time.
0 commit comments