diff --git a/arrow-buffer/src/util/bit_iterator.rs b/arrow-buffer/src/util/bit_iterator.rs index df40a8fbaccb..17086dee238e 100644 --- a/arrow-buffer/src/util/bit_iterator.rs +++ b/arrow-buffer/src/util/bit_iterator.rs @@ -53,7 +53,7 @@ impl<'a> BitIterator<'a> { } } -impl<'a> Iterator for BitIterator<'a> { +impl Iterator for BitIterator { type Item = bool; fn next(&mut self) -> Option { @@ -68,9 +68,9 @@ impl<'a> Iterator for BitIterator<'a> { } } -impl<'a> ExactSizeIterator for BitIterator<'a> {} +impl ExactSizeIterator for BitIterator {} -impl<'a> DoubleEndedIterator for BitIterator<'a> { +impl DoubleEndedIterator for BitIterator { fn next_back(&mut self) -> Option { if self.current_offset == self.end_offset { return None; @@ -133,7 +133,7 @@ impl<'a> BitSliceIterator<'a> { } } -impl<'a> Iterator for BitSliceIterator<'a> { +impl Iterator for BitSliceIterator { type Item = (usize, usize); fn next(&mut self) -> Option { @@ -206,7 +206,7 @@ impl<'a> BitIndexIterator<'a> { } } -impl<'a> Iterator for BitIndexIterator<'a> { +impl Iterator for BitIndexIterator { type Item = usize; fn next(&mut self) -> Option { diff --git a/object_store/src/path/parts.rs b/object_store/src/path/parts.rs index df7097cbe9db..0fe7e80912b6 100644 --- a/object_store/src/path/parts.rs +++ b/object_store/src/path/parts.rs @@ -126,7 +126,7 @@ impl From for PathPart<'static> { } } -impl<'a> AsRef for PathPart<'a> { +impl AsRef for PathPart { fn as_ref(&self) -> &str { self.raw.as_ref() }