mirror of
https://github.com/trussed-dev/littlefs2.git
synced 2026-06-20 04:16:32 -07:00
Fix lints from 1.89
This commit is contained in:
committed by
sosthene-nitrokey
parent
b3a7371d84
commit
209a21f21c
+2
-2
@@ -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(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user