Skip to content

Commit b72d9a6

Browse files
authored
Merge pull request #75 from ltratt/clippy_fixes
Various fixes suggested by Clippy.
2 parents 7909e96 + fc6fab8 commit b72d9a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ pub struct Iter<'a, T: 'a> {
10061006
range: Range<usize>,
10071007
}
10081008

1009-
impl<'a, T: Debug + PrimInt> Iterator for Iter<'a, T> {
1009+
impl<T: Debug + PrimInt> Iterator for Iter<'_, T> {
10101010
type Item = bool;
10111011

10121012
fn next(&mut self) -> Option<bool> {
@@ -1018,13 +1018,13 @@ impl<'a, T: Debug + PrimInt> Iterator for Iter<'a, T> {
10181018
}
10191019
}
10201020

1021-
impl<'a, T: Debug + PrimInt> DoubleEndedIterator for Iter<'a, T> {
1021+
impl<T: Debug + PrimInt> DoubleEndedIterator for Iter<'_, T> {
10221022
fn next_back(&mut self) -> Option<bool> {
10231023
self.range.next_back().map(|i| self.vob.get(i).unwrap())
10241024
}
10251025
}
10261026

1027-
impl<'a, T: Debug + PrimInt> ExactSizeIterator for Iter<'a, T> {}
1027+
impl<T: Debug + PrimInt> ExactSizeIterator for Iter<'_, T> {}
10281028

10291029
impl<'a, T: Debug + PrimInt> IntoIterator for &'a Vob<T> {
10301030
type Item = bool;
@@ -1041,7 +1041,7 @@ pub struct IterSetBits<'a, T: 'a> {
10411041
range: Range<usize>,
10421042
}
10431043

1044-
impl<'a, T: Debug + PrimInt> Iterator for IterSetBits<'a, T> {
1044+
impl<T: Debug + PrimInt> Iterator for IterSetBits<'_, T> {
10451045
type Item = usize;
10461046

10471047
fn next(&mut self) -> Option<usize> {
@@ -1096,7 +1096,7 @@ pub struct IterUnsetBits<'a, T: 'a> {
10961096
range: Range<usize>,
10971097
}
10981098

1099-
impl<'a, T: Debug + PrimInt> Iterator for IterUnsetBits<'a, T> {
1099+
impl<T: Debug + PrimInt> Iterator for IterUnsetBits<'_, T> {
11001100
type Item = usize;
11011101

11021102
fn next(&mut self) -> Option<usize> {
@@ -1173,7 +1173,7 @@ pub struct StorageIter<'a, B: 'a> {
11731173
iter: slice::Iter<'a, B>,
11741174
}
11751175

1176-
impl<'a, T: Debug + PrimInt> Iterator for StorageIter<'a, T> {
1176+
impl<T: Debug + PrimInt> Iterator for StorageIter<'_, T> {
11771177
type Item = T;
11781178

11791179
fn next(&mut self) -> Option<T> {

0 commit comments

Comments
 (0)