@@ -10,9 +10,11 @@ macro_rules! parallel_iterator_methods {
10
10
// $map_elt is the mapping function from the underlying iterator's element
11
11
( $map_elt: expr) => {
12
12
fn drive_unindexed<C >( self , consumer: C ) -> C :: Result
13
- where C : UnindexedConsumer <Self :: Item >
13
+ where
14
+ C : UnindexedConsumer <Self :: Item >,
14
15
{
15
- self . entries. into_par_iter( )
16
+ self . entries
17
+ . into_par_iter( )
16
18
. map( $map_elt)
17
19
. drive_unindexed( consumer)
18
20
}
@@ -23,7 +25,7 @@ macro_rules! parallel_iterator_methods {
23
25
fn opt_len( & self ) -> Option <usize > {
24
26
Some ( self . entries. len( ) )
25
27
}
26
- }
28
+ } ;
27
29
}
28
30
29
31
// generate `IndexedParallelIterator` methods by just forwarding to the underlying
@@ -32,25 +34,26 @@ macro_rules! indexed_parallel_iterator_methods {
32
34
// $map_elt is the mapping function from the underlying iterator's element
33
35
( $map_elt: expr) => {
34
36
fn drive<C >( self , consumer: C ) -> C :: Result
35
- where C : Consumer <Self :: Item >
37
+ where
38
+ C : Consumer <Self :: Item >,
36
39
{
37
- self . entries. into_par_iter( )
38
- . map( $map_elt)
39
- . drive( consumer)
40
+ self . entries. into_par_iter( ) . map( $map_elt) . drive( consumer)
40
41
}
41
42
42
43
fn len( & self ) -> usize {
43
44
self . entries. len( )
44
45
}
45
46
46
47
fn with_producer<CB >( self , callback: CB ) -> CB :: Output
47
- where CB : ProducerCallback <Self :: Item >
48
+ where
49
+ CB : ProducerCallback <Self :: Item >,
48
50
{
49
- self . entries. into_par_iter( )
51
+ self . entries
52
+ . into_par_iter( )
50
53
. map( $map_elt)
51
54
. with_producer( callback)
52
55
}
53
- }
56
+ } ;
54
57
}
55
58
56
59
pub mod map;
0 commit comments