File tree 1 file changed +2
-3
lines changed
gix-worktree-state/src/checkout
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
use std:: {
2
2
borrow:: Cow ,
3
- fs:: { OpenOptions , Permissions } ,
4
3
io:: Write ,
5
4
path:: { Path , PathBuf } ,
6
5
} ;
@@ -237,7 +236,7 @@ fn debug_assert_dest_is_no_symlink(path: &Path) {
237
236
}
238
237
}
239
238
240
- fn open_options ( path : & Path , destination_is_initially_empty : bool , overwrite_existing : bool ) -> OpenOptions {
239
+ fn open_options ( path : & Path , destination_is_initially_empty : bool , overwrite_existing : bool ) -> std :: fs :: OpenOptions {
241
240
if overwrite_existing || !destination_is_initially_empty {
242
241
debug_assert_dest_is_no_symlink ( path) ;
243
242
}
@@ -299,7 +298,7 @@ pub(crate) fn finalize_entry(
299
298
}
300
299
301
300
#[ cfg( unix) ]
302
- fn set_mode_executable ( mut perm : Permissions ) -> Option < Permissions > {
301
+ fn set_mode_executable ( mut perm : std :: fs :: Permissions ) -> Option < std :: fs :: Permissions > {
303
302
use std:: os:: unix:: fs:: PermissionsExt ;
304
303
let mut mode = perm. mode ( ) ;
305
304
if mode & 0o170000 != 0o100000 {
You can’t perform that action at this time.
0 commit comments