We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a7371 commit 209a21fCopy full SHA for 209a21f
core/src/path.rs
@@ -242,7 +242,7 @@ impl Path {
242
/// assert_eq!(&*ancestors.next().unwrap(), path!("/"));
243
/// assert!(ancestors.next().is_none());
244
/// ```
245
- pub fn ancestors(&self) -> Ancestors {
+ pub fn ancestors(&self) -> Ancestors<'_> {
246
Ancestors {
247
path: self.as_str(),
248
}
@@ -260,7 +260,7 @@ impl Path {
260
/// assert_eq!(&*iter.next().unwrap(), path!("file.extension"));
261
/// assert!(iter.next().is_none());
262
263
- pub fn iter(&self) -> Iter {
+ pub fn iter(&self) -> Iter<'_> {
264
Iter {
265
266
0 commit comments