Skip to content

Commit e5723e4

Browse files
authored
Merge pull request #373 from waywardmonkeys/fix-needless_lifetimes-lint
Fix `clippy::needless_lifetimes` lints
2 parents 6aa88c8 + 1876ae3 commit e5723e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/map/iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ impl<K, V> Default for Keys<'_, K, V> {
432432
/// map.insert("foo", 1);
433433
/// println!("{:?}", map.keys()[10]); // panics!
434434
/// ```
435-
impl<'a, K, V> Index<usize> for Keys<'a, K, V> {
435+
impl<K, V> Index<usize> for Keys<'_, K, V> {
436436
type Output = K;
437437

438438
/// Returns a reference to the key at the supplied `index`.
@@ -759,7 +759,7 @@ where
759759
{
760760
}
761761

762-
impl<'a, I, K, V, S> fmt::Debug for Splice<'a, I, K, V, S>
762+
impl<I, K, V, S> fmt::Debug for Splice<'_, I, K, V, S>
763763
where
764764
I: fmt::Debug + Iterator<Item = (K, V)>,
765765
K: fmt::Debug + Hash + Eq,

src/set/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ impl<I: Iterator> Iterator for UnitValue<I> {
610610
}
611611
}
612612

613-
impl<'a, I, T, S> fmt::Debug for Splice<'a, I, T, S>
613+
impl<I, T, S> fmt::Debug for Splice<'_, I, T, S>
614614
where
615615
I: fmt::Debug + Iterator<Item = T>,
616616
T: fmt::Debug + Hash + Eq,

0 commit comments

Comments
 (0)