Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Miao committed Jun 5, 2024
1 parent 791bb95 commit 1ded7fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/services/compfs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl Access for CompfsBackend {
let path = self.core.root.join(path.trim_end_matches('/'));
let read_dir = match self
.core
.exec_blocking(move || std::fs::read_dir(&path))
.exec_blocking(move || std::fs::read_dir(path))
.await?
{
Ok(rd) => rd,
Expand Down
2 changes: 1 addition & 1 deletion core/src/services/compfs/lister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn next_entry(read_dir: &mut ReadDir, root: &Path) -> std::io::Result<Option<oio
let path = entry.path();
let rel_path = normalize_path(
&path
.strip_prefix(&root)
.strip_prefix(root)
.expect("cannot fail because the prefix is iterated")
.to_string_lossy()
.replace('\\', "/"),
Expand Down

0 comments on commit 1ded7fd

Please sign in to comment.