Skip to content

Commit 0e2a243

Browse files
committed
thanks clippy
1 parent 749c310 commit 0e2a243

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

git-worktree/src/index/entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ where
6969
// TODO: how to deal with mode changes? Maybe this info can be passed once we check for whether
7070
// a checkout is needed at all.
7171
if symlink {
72-
crate::os::create_symlink(symlink_destination, &dest)?;
72+
crate::os::create_symlink(symlink_destination, dest)?;
7373
} else {
7474
std::fs::write(&dest, obj.data)?;
7575
}

git-worktree/src/index/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ where
2323
}
2424

2525
use std::io::ErrorKind::AlreadyExists;
26-
let dir = dir.into();
27-
28-
let mut path_cache = PathCache::new(dir.clone());
26+
let mut path_cache = PathCache::new(dir.into());
2927
path_cache.unlink_on_collision = options.overwrite_existing;
3028

3129
let mut buf = Vec::new();

0 commit comments

Comments
 (0)