We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 588e6b0 commit ee7b10cCopy full SHA for ee7b10c
gix-worktree-state/src/checkout/entry.rs
@@ -298,9 +298,9 @@ pub(crate) fn finalize_entry(
298
/// See `let_readers_execute` for the exact details of how the mode is transformed.
299
#[cfg(unix)]
300
fn set_executable(file: &std::fs::File) -> Result<(), std::io::Error> {
301
- let old_raw_mode = rustix::fs::fstat(&file)?.st_mode;
+ let old_raw_mode = rustix::fs::fstat(file)?.st_mode;
302
let new_mode = let_readers_execute(old_raw_mode);
303
- rustix::fs::fchmod(&file, new_mode)?;
+ rustix::fs::fchmod(file, new_mode)?;
304
Ok(())
305
}
306
0 commit comments