Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ho-229 committed Feb 20, 2024
1 parent 038b9c8 commit 6381003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/ofs/src/fuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ impl PathFilesystem for Ofs {
let make_entry = |op: Operator, i: usize, entry: opendal::Result<Entry>, uid, gid, now| async move {
let e = entry.map_err(opendal_error2errno)?;
let metadata = op
.stat(&e.name())
.stat(e.name())
.await
.unwrap_or_else(|_| e.metadata().clone());
let attr = metadata2file_attr(&metadata, now, uid, gid);
Expand Down
2 changes: 1 addition & 1 deletion bin/ofs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct Args {
backend: Operator,
}

#[cfg(any(not(target_os = "linux")))]
#[cfg(not(target_os = "linux"))]
async fn execute(_: FrontendArgs) -> Result<()> {
Err(anyhow::anyhow!("platform not supported"))
}
Expand Down

0 comments on commit 6381003

Please sign in to comment.