diff --git a/src/crypto/writer.rs b/src/crypto/writer.rs index 7959ceef..1bda4b53 100644 --- a/src/crypto/writer.rs +++ b/src/crypto/writer.rs @@ -299,7 +299,6 @@ impl FileCryptoWriter { .into_temp_path() .to_path_buf(); let tmp_file = File::create(tmp_path.clone())?; - let cipher = cipher; self.writer = Box::new(crypto::create_writer( tmp_file, &cipher, diff --git a/src/encryptedfs_fuse3.rs b/src/encryptedfs_fuse3.rs index dad6967b..d93284cc 100644 --- a/src/encryptedfs_fuse3.rs +++ b/src/encryptedfs_fuse3.rs @@ -1304,11 +1304,11 @@ fn as_file_kind(mut mode: u32) -> FileType { mode &= libc::S_IFMT as u32; if mode == libc::S_IFREG as u32 { - return FileType::RegularFile; + FileType::RegularFile // } else if mode == libc::S_IFLNK as u32 { // return FileType::Symlink; } else if mode == libc::S_IFDIR as u32 { - return FileType::Directory; + FileType::Directory } else { unimplemented!("{mode}"); } @@ -1368,7 +1368,7 @@ fn check_access( access_mask -= access_mask & file_mode; } - return access_mask == 0; + access_mask == 0 } fn system_time_from_timestamp(t: Timestamp) -> SystemTime { diff --git a/src/lib.rs b/src/lib.rs index 769965aa..94275b5b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -231,7 +231,7 @@ pub fn is_debug() -> bool { { return true; } - return false; + false } #[instrument(skip(password_provider))]