aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 8439302..1c0d487 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -123,7 +123,7 @@ fn try_move<'a>(
new: &'a str
) -> Result<(), io::Error> {
if Path::new(new).exists() {
- let new_loc = tmpdir.path().to_str().unwrap().to_owned() + new;
+ let new_loc = tmpdir.path().to_str().unwrap().to_owned() + "/" + new;
fs::rename(old, new_loc)?;
conflicts.push(new);
} else {
@@ -133,7 +133,7 @@ fn try_move<'a>(
}
fn do_move(tmpdir: &TempDir, new: &str) -> Result<(), io::Error> {
- let old = tmpdir.path().to_str().unwrap().to_owned() + new;
+ let old = tmpdir.path().to_str().unwrap().to_owned() + "/" + new;
fs::rename(old, new)?;
Ok(())
}