Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
radumarias committed Nov 19, 2024
1 parent b2b880c commit 32f95b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/encryptedfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2165,10 +2165,7 @@ impl EncryptedFs {
// read
let lock = self.opened_files_for_read.read().await;
if let Some(set) = lock.get(&ino) {
for handle in set
.iter()
.filter(|h| skip_write_fh != Some(**h))
{
for handle in set.iter().filter(|h| skip_write_fh != Some(**h)) {
let guard = self.read_handles.read().await;
let ctx = guard.get(handle).unwrap().lock().await;
let set_attr: SetFileAttr = ctx.attr.clone().into();
Expand Down

0 comments on commit 32f95b6

Please sign in to comment.