Skip to content

Commit fe06fc3

Browse files
committed
Fix core::iter::Fuse's Default impl to do what it's docs say it does.
1 parent 414482f commit fe06fc3

File tree

1 file changed

+1
-1
lines changed
  • library/core/src/iter/adapters

1 file changed

+1
-1
lines changed

library/core/src/iter/adapters/fuse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl<I: Default> Default for Fuse<I> {
199199
/// assert_eq!(iter.len(), 0);
200200
/// ```
201201
fn default() -> Self {
202-
Fuse { iter: Default::default() }
202+
Fuse { iter: Some(Default::default()) }
203203
}
204204
}
205205

0 commit comments

Comments
 (0)