Skip to content

Commit

Permalink
fix walkdir::Result::ok
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Oct 17, 2024
1 parent 2892dee commit 38544c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/backend/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl ReadBackend for LocalBackend {

let walker = WalkDir::new(self.path.join(tpe.dirname()))
.into_iter()
.filter_map(walkdir::BackendResult::ok)
.filter_map(walkdir::Result::ok)
.filter(|e| e.file_type().is_file())
.filter_map(|e| e.file_name().to_string_lossy().parse::<Id>().ok());
Ok(walker.collect())
Expand Down Expand Up @@ -261,7 +261,7 @@ impl ReadBackend for LocalBackend {

let walker = WalkDir::new(path)
.into_iter()
.filter_map(walkdir::BackendResult::ok)
.filter_map(walkdir::Result::ok)
.filter(|e| e.file_type().is_file())
.map(|e| -> BackendResult<_> {
Ok((
Expand Down

0 comments on commit 38544c5

Please sign in to comment.