Skip to content

Commit

Permalink
Fix lock drop warning
Browse files Browse the repository at this point in the history
This fixes the following warning:

this lock is not assigned to a binding and is immediately dropped
  • Loading branch information
gaul committed Oct 9, 2023
1 parent d04beb9 commit 322b087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/catfs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ impl Handle {
path: &dyn AsRef<Path>,
create: bool,
) -> error::Result<()> {
let _ = self.page_in_res.0.lock().unwrap();
let _unused = self.page_in_res.0.lock().unwrap();

let mut buf = [0u8; 0];
let mut flags = rlibc::O_RDWR;
Expand Down

0 comments on commit 322b087

Please sign in to comment.