From 6381003f3a8627470fe721398d2f62d5cf9e1ae8 Mon Sep 17 00:00:00 2001 From: Ho 229 Date: Tue, 20 Feb 2024 18:16:13 +0800 Subject: [PATCH] chore: make clippy happy --- bin/ofs/src/fuse.rs | 2 +- bin/ofs/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ofs/src/fuse.rs b/bin/ofs/src/fuse.rs index 4d939e7c7c2..214187e861e 100644 --- a/bin/ofs/src/fuse.rs +++ b/bin/ofs/src/fuse.rs @@ -573,7 +573,7 @@ impl PathFilesystem for Ofs { let make_entry = |op: Operator, i: usize, entry: opendal::Result, 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); diff --git a/bin/ofs/src/lib.rs b/bin/ofs/src/lib.rs index a489b1e449b..c82d5e5edc8 100644 --- a/bin/ofs/src/lib.rs +++ b/bin/ofs/src/lib.rs @@ -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")) }