Skip to content

Commit e02f439

Browse files
committed
Remove useless 'use crate;' in favor of the crate prelude
1 parent a1db0fe commit e02f439

File tree

26 files changed

+0
-37
lines changed

26 files changed

+0
-37
lines changed

examples/cpu_monitor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
extern crate serde_derive;
33

44
use docopt::Docopt;
5-
use rayon;
65
use std::io;
76
use std::process;
87

rayon-core/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ pub use self::thread_pool::current_thread_has_pending_tasks;
6464
pub use self::thread_pool::current_thread_index;
6565
pub use self::thread_pool::ThreadPool;
6666

67-
use crossbeam_utils;
68-
use num_cpus;
6967
use self::registry::{CustomSpawn, DefaultSpawn, ThreadSpawn};
7068

7169
/// Returns the number of threads in the current registry. If this

rayon-core/tests/scope_join.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use rayon_core;
2-
31
/// Test that one can emulate join with `scope`:
42
fn pseudo_join<F, G>(f: F, g: G)
53
where

rayon-demo/src/factorial/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
//! Benchmark Factorial N! = 1×2×⋯×N
22
33
use num::{BigUint, One};
4-
use rayon;
54
use rayon::prelude::*;
65
use std::ops::Mul;
7-
use test;
86

97
const N: u32 = 9999;
108

rayon-demo/src/fibonacci/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
1616
extern crate test;
1717

18-
use rayon;
19-
2018
const N: u32 = 32;
2119
const FN: u32 = 2_178_309;
2220

rayon-demo/src/join_microbench.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Some microbenchmarks that stress test a pure `join` path.
22
3-
use rayon;
43
use rayon::prelude::*;
54
use std::usize;
65
use test::Bencher;

rayon-demo/src/life/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use std::iter::repeat;
2121
use std::num::Wrapping;
2222
use std::sync::Arc;
2323
use std::thread;
24-
use time;
2524

2625
use docopt::Docopt;
2726
use rayon::iter::ParallelBridge;

rayon-demo/src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ extern crate winapi; // life
4747
#[cfg(test)]
4848
extern crate test;
4949

50-
use rand;
51-
use rand_xorshift;
52-
5350
const USAGE: &str = "
5451
Usage: rayon-demo bench
5552
rayon-demo <demo-name> [ options ]

rayon-demo/src/matmul/bench.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use test;
2-
31
const ROW_SIZE: usize = 256;
42

53
#[bench]

rayon-demo/src/matmul/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ pub struct Args {
1717
}
1818

1919
use docopt::Docopt;
20-
use rayon;
2120
use rayon::prelude::*;
2221

2322
use std::time::Instant;

0 commit comments

Comments
 (0)