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 749c310 commit 0e2a243Copy full SHA for 0e2a243
git-worktree/src/index/entry.rs
@@ -69,7 +69,7 @@ where
69
// TODO: how to deal with mode changes? Maybe this info can be passed once we check for whether
70
// a checkout is needed at all.
71
if symlink {
72
- crate::os::create_symlink(symlink_destination, &dest)?;
+ crate::os::create_symlink(symlink_destination, dest)?;
73
} else {
74
std::fs::write(&dest, obj.data)?;
75
}
git-worktree/src/index/mod.rs
@@ -23,9 +23,7 @@ where
23
24
25
use std::io::ErrorKind::AlreadyExists;
26
- let dir = dir.into();
27
-
28
- let mut path_cache = PathCache::new(dir.clone());
+ let mut path_cache = PathCache::new(dir.into());
29
path_cache.unlink_on_collision = options.overwrite_existing;
30
31
let mut buf = Vec::new();
0 commit comments