Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions gix-worktree-state/src/checkout/entry.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::{
borrow::Cow,
fs::{OpenOptions, Permissions},
io::Write,
path::{Path, PathBuf},
};
Expand Down Expand Up @@ -237,7 +236,7 @@ fn debug_assert_dest_is_no_symlink(path: &Path) {
}
}

fn open_options(path: &Path, destination_is_initially_empty: bool, overwrite_existing: bool) -> OpenOptions {
fn open_options(path: &Path, destination_is_initially_empty: bool, overwrite_existing: bool) -> std::fs::OpenOptions {
if overwrite_existing || !destination_is_initially_empty {
debug_assert_dest_is_no_symlink(path);
}
Expand Down Expand Up @@ -299,7 +298,7 @@ pub(crate) fn finalize_entry(
}

#[cfg(unix)]
fn set_mode_executable(mut perm: Permissions) -> Option<Permissions> {
fn set_mode_executable(mut perm: std::fs::Permissions) -> Option<std::fs::Permissions> {
use std::os::unix::fs::PermissionsExt;
let mut mode = perm.mode();
if mode & 0o170000 != 0o100000 {
Expand Down
Loading