diff options
author | Sam Scott <sam.scott89@gmail.com> | 2020-06-03 10:09:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 10:09:46 -0400 |
commit | d5c2d3e44a5cbe2311111fb56bfe6bed8fabd961 (patch) | |
tree | 9903b92b6376c9a020e7bf66108cc42b0475e83f /examples/introduction.rs | |
parent | 65acdffa9cbe11d919ae9f397335c55995ba1997 (diff) | |
parent | dd567907e027200a4f18bc05d7c0f5acb9648d5a (diff) |
Merge pull request #29 from Keruspe/master
Update dependencies
Diffstat (limited to 'examples/introduction.rs')
-rw-r--r-- | examples/introduction.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/introduction.rs b/examples/introduction.rs index 34cb530..fb91b3e 100644 --- a/examples/introduction.rs +++ b/examples/introduction.rs @@ -4,7 +4,7 @@ extern crate serde_derive; extern crate serde_qs as qs; extern crate serde_urlencoded as urlencoded; -use rand::Rng; +use rand::seq::SliceRandom; use std::collections::HashMap; use qs::Config; @@ -104,7 +104,7 @@ fn main() { let mut rng = rand::thread_rng(); for _ in 0..10 { let mut acc = String::new(); - rng.shuffle(&mut inputs); + inputs.shuffle(&mut rng); for input in &inputs { acc += input; acc += "&"; |