Skip to content

Commit

Permalink
Merge pull request #373 from waywardmonkeys/fix-needless_lifetimes-lint
Browse files Browse the repository at this point in the history
Fix `clippy::needless_lifetimes` lints
  • Loading branch information
cuviper authored Jan 29, 2025
2 parents 6aa88c8 + 1876ae3 commit e5723e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/map/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl<K, V> Default for Keys<'_, K, V> {
/// map.insert("foo", 1);
/// println!("{:?}", map.keys()[10]); // panics!
/// ```
impl<'a, K, V> Index<usize> for Keys<'a, K, V> {
impl<K, V> Index<usize> for Keys<'_, K, V> {
type Output = K;

/// Returns a reference to the key at the supplied `index`.
Expand Down Expand Up @@ -759,7 +759,7 @@ where
{
}

impl<'a, I, K, V, S> fmt::Debug for Splice<'a, I, K, V, S>
impl<I, K, V, S> fmt::Debug for Splice<'_, I, K, V, S>
where
I: fmt::Debug + Iterator<Item = (K, V)>,
K: fmt::Debug + Hash + Eq,
Expand Down
2 changes: 1 addition & 1 deletion src/set/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ impl<I: Iterator> Iterator for UnitValue<I> {
}
}

impl<'a, I, T, S> fmt::Debug for Splice<'a, I, T, S>
impl<I, T, S> fmt::Debug for Splice<'_, I, T, S>
where
I: fmt::Debug + Iterator<Item = T>,
T: fmt::Debug + Hash + Eq,
Expand Down

0 comments on commit e5723e4

Please sign in to comment.