mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-02 13:59:07 +02:00
treewide: clippy fixes
Fix all clippy warnings as of Rust 1.83.0.
This commit is contained in:
parent
2156bff59a
commit
4933d8e15f
7 changed files with 16 additions and 16 deletions
|
@ -416,13 +416,13 @@ impl<'a> Iterator for SectionIter<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> DoubleEndedIterator for SectionIter<'a> {
|
||||
impl DoubleEndedIterator for SectionIter<'_> {
|
||||
fn next_back(&mut self) -> Option<Self::Item> {
|
||||
self.with_iter(|iter| iter.next_back())
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> ExactSizeIterator for SectionIter<'a> {
|
||||
impl ExactSizeIterator for SectionIter<'_> {
|
||||
fn len(&self) -> usize {
|
||||
match &self.inner {
|
||||
SectionIterInner::V1_18 { iter } => iter.len(),
|
||||
|
@ -433,4 +433,4 @@ impl<'a> ExactSizeIterator for SectionIter<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> FusedIterator for SectionIter<'a> {}
|
||||
impl FusedIterator for SectionIter<'_> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue