Mark the Iterator last self parameter as mut

上级 6a5a6004
......@@ -3020,7 +3020,7 @@ fn size_hint(&self) -> (usize, Option<usize>) {
}
#[inline]
fn last(self) -> Option<Self::Item> {
fn last(mut self) -> Option<Self::Item> {
self.next_back()
}
}
......@@ -3105,7 +3105,7 @@ fn size_hint(&self) -> (usize, Option<usize>) {
}
#[inline]
fn last(self) -> Option<Self::Item> {
fn last(mut self) -> Option<Self::Item> {
self.next_back()
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册