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]
|
||||
fn last(self) -> Option<Self::Item> {
|
||||
fn last(mut self) -> Option<Self::Item> {
|
||||
self.next_back()
|
||||
}
|
||||
}
|
||||
@ -3105,7 +3105,7 @@ where P: FnMut(&T, &T) -> bool,
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn last(self) -> Option<Self::Item> {
|
||||
fn last(mut self) -> Option<Self::Item> {
|
||||
self.next_back()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user