File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1761,7 +1761,7 @@ pub trait ParallelIterator: Sized + Send {
1761
1761
/// });
1762
1762
/// ```
1763
1763
fn panic_fuse ( self ) -> PanicFuse < Self > {
1764
- panic_fuse :: new ( self )
1764
+ PanicFuse :: new ( self )
1765
1765
}
1766
1766
1767
1767
/// Create a fresh collection containing all the element produced
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ impl<'a> Fuse<'a> {
36
36
}
37
37
}
38
38
39
- /// Create a new `PanicFuse` iterator.
40
- ///
41
- /// NB: a free fn because it is NOT part of the end-user API.
42
- pub fn new < I > ( base : I ) -> PanicFuse < I >
39
+ impl < I > PanicFuse < I >
43
40
where
44
41
I : ParallelIterator ,
45
42
{
46
- PanicFuse { base : base }
43
+ /// Create a new `PanicFuse` iterator.
44
+ pub ( super ) fn new ( base : I ) -> PanicFuse < I > {
45
+ PanicFuse { base }
46
+ }
47
47
}
48
48
49
49
impl < I > ParallelIterator for PanicFuse < I >
93
93
where
94
94
CB : ProducerCallback < Self :: Item > ,
95
95
{
96
- return self . base . with_producer ( Callback { callback : callback } ) ;
96
+ return self . base . with_producer ( Callback { callback } ) ;
97
97
98
98
struct Callback < CB > {
99
99
callback : CB ,
@@ -111,7 +111,7 @@ where
111
111
{
112
112
let panicked = AtomicBool :: new ( false ) ;
113
113
let producer = PanicFuseProducer {
114
- base : base ,
114
+ base,
115
115
fuse : Fuse ( & panicked) ,
116
116
} ;
117
117
self . callback . callback ( producer)
You can’t perform that action at this time.
0 commit comments