Skip to content

Commit

Permalink
Remove unnecessary explicit lifetimes
Browse files Browse the repository at this point in the history
This fixes a new clippy lint.
  • Loading branch information
robin-nitrokey committed Jan 7, 2025
1 parent 62afcd8 commit d597443
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub struct Ancestors<'a> {
path: &'a str,
}

impl<'a> Iterator for Ancestors<'a> {
impl Iterator for Ancestors<'_> {
type Item = PathBuf;
fn next(&mut self) -> Option<PathBuf> {
if self.path.is_empty() {
Expand Down Expand Up @@ -118,7 +118,7 @@ impl<'a> Iterator for Ancestors<'a> {
}
}

impl<'a> FusedIterator for Ancestors<'a> {}
impl FusedIterator for Ancestors<'_> {}

/// Iterator over the components of a Path
///
Expand All @@ -127,7 +127,7 @@ pub struct Iter<'a> {
path: &'a str,
}

impl<'a> Iterator for Iter<'a> {
impl Iterator for Iter<'_> {
type Item = PathBuf;
fn next(&mut self) -> Option<PathBuf> {
if self.path.is_empty() {
Expand Down

0 comments on commit d597443

Please sign in to comment.