Fix lints from 1.89

This commit is contained in:
Sosthène Guédon
2025-08-08 14:00:26 +02:00
committed by sosthene-nitrokey
parent b3a7371d84
commit 209a21f21c
+2 -2
View File
@@ -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(),
}