]> git.proxmox.com Git - rustc.git/blobdiff - vendor/rustc-rayon/tests/str.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / vendor / rustc-rayon / tests / str.rs
index 4354d89038efe8f0f25009633efe53e8912f18c0..0e1e35eec4cfea25bf30c8289ce369ad71930577 100644 (file)
@@ -1,7 +1,3 @@
-extern crate rand;
-extern crate rand_xorshift;
-extern crate rayon;
-
 use rand::distributions::Standard;
 use rand::{Rng, SeedableRng};
 use rand_xorshift::XorShiftRng;
@@ -15,7 +11,7 @@ fn seeded_rng() -> XorShiftRng {
 
 #[test]
 pub fn execute_strings() {
-    let mut rng = seeded_rng();
+    let rng = seeded_rng();
     let s: String = rng.sample_iter::<char, _>(&Standard).take(1024).collect();
 
     let par_chars: String = s.par_chars().collect();