From 209a21f21c23d5e5b05be05f6c080b605d66eaed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 7 Aug 2025 17:13:57 +0200 Subject: [PATCH] Fix lints from 1.89 --- core/src/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/path.rs b/core/src/path.rs index 61ad8673..7eea88fe 100644 --- a/core/src/path.rs +++ b/core/src/path.rs @@ -242,7 +242,7 @@ impl Path { /// assert_eq!(&*ancestors.next().unwrap(), path!("/")); /// assert!(ancestors.next().is_none()); /// ``` - pub fn ancestors(&self) -> Ancestors { + pub fn ancestors(&self) -> Ancestors<'_> { Ancestors { path: self.as_str(), } @@ -260,7 +260,7 @@ impl Path { /// assert_eq!(&*iter.next().unwrap(), path!("file.extension")); /// assert!(iter.next().is_none()); /// ``` - pub fn iter(&self) -> Iter { + pub fn iter(&self) -> Iter<'_> { Iter { path: self.as_str(), }