Skip to content

Commit fc6fab8

Browse files
committed
Various fixes suggested by Clippy.
1 parent fe05bc9 commit fc6fab8

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
@@ -1021,7 +1021,7 @@ pub struct Iter<'a, T: 'a> {
10211021
range: Range<usize>,
10221022
}
10231023

1024-
impl<'a, T: Debug + PrimInt> Iterator for Iter<'a, T> {
1024+
impl<T: Debug + PrimInt> Iterator for Iter<'_, T> {
10251025
type Item = bool;
10261026

10271027
fn next(&mut self) -> Option<bool> {
@@ -1033,13 +1033,13 @@ impl<'a, T: Debug + PrimInt> Iterator for Iter<'a, T> {
10331033
}
10341034
}
10351035

1036-
impl<'a, T: Debug + PrimInt> DoubleEndedIterator for Iter<'a, T> {
1036+
impl<T: Debug + PrimInt> DoubleEndedIterator for Iter<'_, T> {
10371037
fn next_back(&mut self) -> Option<bool> {
10381038
self.range.next_back().map(|i| self.vob.get(i).unwrap())
10391039
}
10401040
}
10411041

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

10441044
impl<'a, T: Debug + PrimInt> IntoIterator for &'a Vob<T> {
10451045
type Item = bool;
@@ -1056,7 +1056,7 @@ pub struct IterSetBits<'a, T: 'a> {
10561056
range: Range<usize>,
10571057
}
10581058

1059-
impl<'a, T: Debug + PrimInt> Iterator for IterSetBits<'a, T> {
1059+
impl<T: Debug + PrimInt> Iterator for IterSetBits<'_, T> {
10601060
type Item = usize;
10611061

10621062
fn next(&mut self) -> Option<usize> {
@@ -1111,7 +1111,7 @@ pub struct IterUnsetBits<'a, T: 'a> {
11111111
range: Range<usize>,
11121112
}
11131113

1114-
impl<'a, T: Debug + PrimInt> Iterator for IterUnsetBits<'a, T> {
1114+
impl<T: Debug + PrimInt> Iterator for IterUnsetBits<'_, T> {
11151115
type Item = usize;
11161116

11171117
fn next(&mut self) -> Option<usize> {
@@ -1188,7 +1188,7 @@ pub struct StorageIter<'a, B: 'a> {
11881188
iter: slice::Iter<'a, B>,
11891189
}
11901190

1191-
impl<'a, T: Debug + PrimInt> Iterator for StorageIter<'a, T> {
1191+
impl<T: Debug + PrimInt> Iterator for StorageIter<'_, T> {
11921192
type Item = T;
11931193

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

0 commit comments

Comments
 (0)