Skip to content

Commit

Permalink
Thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
EliahKagan committed Jan 24, 2025
1 parent 588e6b0 commit ee7b10c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gix-worktree-state/src/checkout/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ pub(crate) fn finalize_entry(
/// See `let_readers_execute` for the exact details of how the mode is transformed.
#[cfg(unix)]
fn set_executable(file: &std::fs::File) -> Result<(), std::io::Error> {
let old_raw_mode = rustix::fs::fstat(&file)?.st_mode;
let old_raw_mode = rustix::fs::fstat(file)?.st_mode;
let new_mode = let_readers_execute(old_raw_mode);
rustix::fs::fchmod(&file, new_mode)?;
rustix::fs::fchmod(file, new_mode)?;
Ok(())
}

Expand Down

0 comments on commit ee7b10c

Please sign in to comment.