Skip to content

Commit 7adff53

Browse files
committed
Remove extra mut
1 parent 5a8aae5 commit 7adff53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/traits/iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2717,7 +2717,7 @@ impl<I: Iterator + Sized> Iterator for &mut I {
27172717
fn nth(&mut self, n: usize) -> Option<Self::Item> {
27182718
(**self).nth(n)
27192719
}
2720-
fn try_fold<B, F, R>(&mut self, init: B, mut f: F) -> R where
2720+
fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R where
27212721
F: FnMut(B, Self::Item) -> R, R: Try<Ok=B>
27222722
{
27232723
(**self).try_fold(init, f)

0 commit comments

Comments
 (0)