Skip to content

Commit ee7b10c

Browse files
committed
Thanks clippy
1 parent 588e6b0 commit ee7b10c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-worktree-state/src/checkout/entry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ pub(crate) fn finalize_entry(
298298
/// See `let_readers_execute` for the exact details of how the mode is transformed.
299299
#[cfg(unix)]
300300
fn set_executable(file: &std::fs::File) -> Result<(), std::io::Error> {
301-
let old_raw_mode = rustix::fs::fstat(&file)?.st_mode;
301+
let old_raw_mode = rustix::fs::fstat(file)?.st_mode;
302302
let new_mode = let_readers_execute(old_raw_mode);
303-
rustix::fs::fchmod(&file, new_mode)?;
303+
rustix::fs::fchmod(file, new_mode)?;
304304
Ok(())
305305
}
306306

0 commit comments

Comments
 (0)