From 425c490a1d42866734963d251ee6543ef53f4a79 Mon Sep 17 00:00:00 2001 From: Eric Chang Date: Fri, 20 Dec 2024 06:51:58 +0800 Subject: [PATCH] revert unnecesary change --- clients/filesystem-fuse/src/fuse_api_handle.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/filesystem-fuse/src/fuse_api_handle.rs b/clients/filesystem-fuse/src/fuse_api_handle.rs index 7df6bd47eab..6ce22d65705 100644 --- a/clients/filesystem-fuse/src/fuse_api_handle.rs +++ b/clients/filesystem-fuse/src/fuse_api_handle.rs @@ -554,8 +554,7 @@ impl Filesystem for FuseApiHandle { } } -fn fstat_to_file_attr(file_st: &FileStat, context: &FileSystemContext) -> FileAttr { - debug!("file_st: {:?}, context: {:?}", file_st, context); +const fn fstat_to_file_attr(file_st: &FileStat, context: &FileSystemContext) -> FileAttr { debug_assert!(file_st.file_id != 0 && file_st.parent_file_id != 0); let perm = match file_st.kind { Directory => context.default_dir_perm,