Skip to content

Commit 26b5293

Browse files
waywardmonkeyscuviper
authored andcommitted
Fix clippy::needless_lifetimes lints
1 parent 6786696 commit 26b5293

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
@@ -623,7 +623,7 @@ impl<K, V> Default for Keys<'_, K, V> {
623623
/// map.insert("foo", 1);
624624
/// println!("{:?}", map.keys()[10]); // panics!
625625
/// ```
626-
impl<'a, K, V> Index<usize> for Keys<'a, K, V> {
626+
impl<K, V> Index<usize> for Keys<'_, K, V> {
627627
type Output = K;
628628

629629
/// Returns a reference to the key at the supplied `index`.
@@ -975,7 +975,7 @@ where
975975
{
976976
}
977977

978-
impl<'a, I, K, V, S> fmt::Debug for Splice<'a, I, K, V, S>
978+
impl<I, K, V, S> fmt::Debug for Splice<'_, I, K, V, S>
979979
where
980980
I: fmt::Debug + Iterator<Item = (K, V)>,
981981
K: fmt::Debug + Hash + Eq,

src/set/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ impl<I: Iterator> Iterator for UnitValue<I> {
607607
}
608608
}
609609

610-
impl<'a, I, T, S> fmt::Debug for Splice<'a, I, T, S>
610+
impl<I, T, S> fmt::Debug for Splice<'_, I, T, S>
611611
where
612612
I: fmt::Debug + Iterator<Item = T>,
613613
T: fmt::Debug + Hash + Eq,

0 commit comments

Comments
 (0)