Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fe06fc3

Browse files
committedMay 14, 2025·
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.