mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Mark the Iterator last self parameter as mut
This commit is contained in:
parent
6a5a60048d
commit
5190fe4979
@ -3020,7 +3020,7 @@ where P: FnMut(&T, &T) -> bool,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn last(self) -> Option<Self::Item> {
|
fn last(mut self) -> Option<Self::Item> {
|
||||||
self.next_back()
|
self.next_back()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3105,7 +3105,7 @@ where P: FnMut(&T, &T) -> bool,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn last(self) -> Option<Self::Item> {
|
fn last(mut self) -> Option<Self::Item> {
|
||||||
self.next_back()
|
self.next_back()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user