Skip to content

Commit e9f06f4

Browse files
lint: fix needless_lifetimes and mismatched_lifetime_syntaxes
PR #399
1 parent 9dab947 commit e9f06f4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/byte_record.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<T: AsRef<[u8]>> PartialEq<Vec<T>> for ByteRecord {
5050
}
5151
}
5252

53-
impl<'a, T: AsRef<[u8]>> PartialEq<Vec<T>> for &'a ByteRecord {
53+
impl<T: AsRef<[u8]>> PartialEq<Vec<T>> for &ByteRecord {
5454
fn eq(&self, other: &Vec<T>) -> bool {
5555
self.iter_eq(other)
5656
}
@@ -62,7 +62,7 @@ impl<T: AsRef<[u8]>> PartialEq<[T]> for ByteRecord {
6262
}
6363
}
6464

65-
impl<'a, T: AsRef<[u8]>> PartialEq<[T]> for &'a ByteRecord {
65+
impl<T: AsRef<[u8]>> PartialEq<[T]> for &ByteRecord {
6666
fn eq(&self, other: &[T]) -> bool {
6767
self.iter_eq(other)
6868
}
@@ -251,7 +251,7 @@ impl ByteRecord {
251251
/// }
252252
/// ```
253253
#[inline]
254-
pub fn iter(&self) -> ByteRecordIter {
254+
pub fn iter(&self) -> ByteRecordIter<'_> {
255255
self.into_iter()
256256
}
257257

src/reader.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ impl<R: io::Read> Reader<R> {
10451045
/// }
10461046
/// }
10471047
/// ```
1048-
pub fn deserialize<D>(&mut self) -> DeserializeRecordsIter<R, D>
1048+
pub fn deserialize<D>(&mut self) -> DeserializeRecordsIter<'_, R, D>
10491049
where
10501050
D: DeserializeOwned,
10511051
{
@@ -1145,7 +1145,7 @@ impl<R: io::Read> Reader<R> {
11451145
/// }
11461146
/// }
11471147
/// ```
1148-
pub fn records(&mut self) -> StringRecordsIter<R> {
1148+
pub fn records(&mut self) -> StringRecordsIter<'_, R> {
11491149
StringRecordsIter::new(self)
11501150
}
11511151

@@ -1222,7 +1222,7 @@ impl<R: io::Read> Reader<R> {
12221222
/// }
12231223
/// }
12241224
/// ```
1225-
pub fn byte_records(&mut self) -> ByteRecordsIter<R> {
1225+
pub fn byte_records(&mut self) -> ByteRecordsIter<'_, R> {
12261226
ByteRecordsIter::new(self)
12271227
}
12281228

src/string_record.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<T: AsRef<[u8]>> PartialEq<Vec<T>> for StringRecord {
4949
}
5050
}
5151

52-
impl<'a, T: AsRef<[u8]>> PartialEq<Vec<T>> for &'a StringRecord {
52+
impl<T: AsRef<[u8]>> PartialEq<Vec<T>> for &StringRecord {
5353
fn eq(&self, other: &Vec<T>) -> bool {
5454
self.0.iter_eq(other)
5555
}
@@ -61,7 +61,7 @@ impl<T: AsRef<[u8]>> PartialEq<[T]> for StringRecord {
6161
}
6262
}
6363

64-
impl<'a, T: AsRef<[u8]>> PartialEq<[T]> for &'a StringRecord {
64+
impl<T: AsRef<[u8]>> PartialEq<[T]> for &StringRecord {
6565
fn eq(&self, other: &[T]) -> bool {
6666
self.0.iter_eq(other)
6767
}
@@ -311,7 +311,7 @@ impl StringRecord {
311311
/// }
312312
/// ```
313313
#[inline]
314-
pub fn iter(&self) -> StringRecordIter {
314+
pub fn iter(&self) -> StringRecordIter<'_> {
315315
self.into_iter()
316316
}
317317

0 commit comments

Comments
 (0)