1
1
error: found iterator that can be parallelized
2
- --> $DIR/main.rs:34 :5
2
+ --> $DIR/main.rs:44 :5
3
3
|
4
4
LL | (0..100).into_iter().for_each(|x| println!("{:?}", x));
5
5
| ^^^^^^^^^^^^^^^^^^^^ help: try using a parallel iterator: `(0..100).into_par_iter()`
@@ -8,7 +8,7 @@ LL | (0..100).into_iter().for_each(|x| println!("{:?}", x));
8
8
= help: to override `-D warnings` add `#[allow(par_iter)]`
9
9
10
10
error: found iterator that can be parallelized
11
- --> $DIR/main.rs:58 :5
11
+ --> $DIR/main.rs:68 :5
12
12
|
13
13
LL | / (0..100)
14
14
LL | | .into_iter()
@@ -21,37 +21,37 @@ LL + .into_par_iter()
21
21
|
22
22
23
23
error: found iterator that can be parallelized
24
- --> $DIR/main.rs:93 :5
24
+ --> $DIR/main.rs:103 :5
25
25
|
26
26
LL | list.into_iter().for_each(|x| println!("{:?}", x));
27
27
| ^^^^^^^^^^^^^^^^ help: try using a parallel iterator: `list.into_par_iter()`
28
28
29
29
error: found iterator that can be parallelized
30
- --> $DIR/main.rs:109 :5
30
+ --> $DIR/main.rs:119 :5
31
31
|
32
32
LL | (0..10).into_iter().for_each(|x| {
33
33
| ^^^^^^^^^^^^^^^^^^^ help: try using a parallel iterator: `(0..10).into_par_iter()`
34
34
35
35
error: found iterator that can be parallelized
36
- --> $DIR/main.rs:192 :5
36
+ --> $DIR/main.rs:202 :5
37
37
|
38
38
LL | data.iter()
39
39
| ^^^^^^^^^^^ help: try using a parallel iterator: `data.par_iter()`
40
40
41
41
error: found iterator that can be parallelized
42
- --> $DIR/main.rs:219 :5
42
+ --> $DIR/main.rs:229 :5
43
43
|
44
44
LL | numbers.iter().enumerate().for_each(|t| {
45
45
| ^^^^^^^^^^^^^^ help: try using a parallel iterator: `numbers.par_iter()`
46
46
47
47
error: found iterator that can be parallelized
48
- --> $DIR/main.rs:260 :30
48
+ --> $DIR/main.rs:270 :30
49
49
|
50
50
LL | let names: Vec<String> = people.iter().map(|p| p.name.clone()).collect();
51
51
| ^^^^^^^^^^^^^ help: try using a parallel iterator: `people.par_iter()`
52
52
53
53
error: found iterator that can be parallelized
54
- --> $DIR/main.rs:268 :37
54
+ --> $DIR/main.rs:278 :37
55
55
|
56
56
LL | let doubled_numbers: Vec<i32> = numbers
57
57
| _____________________________________^
0 commit comments