Skip to content

Commit

Permalink
fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed May 9, 2024
1 parent 0b0f035 commit b3f82be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/crypto/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ impl<Callback: FileCryptoWriterCallback> FileCryptoWriter<Callback> {
.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,
Expand Down
6 changes: 3 additions & 3 deletions src/encryptedfs_fuse3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
}
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ pub fn is_debug() -> bool {
{
return true;
}
return false;
false
}

#[instrument(skip(password_provider))]
Expand Down

0 comments on commit b3f82be

Please sign in to comment.