summaryrefslogtreecommitdiff
path: root/src/cmd/add_folder.rs
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-11-17 17:54:29 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-11-17 17:54:29 +0100
commit6ed535387df0dffa72a10e601b8ea37c99345d84 (patch)
treea9ae7652c1fe260b92ed019413bce5ee8394dc49 /src/cmd/add_folder.rs
parent20d247bae690eed12e4edbfbe19c611375314da1 (diff)
remove some not needed clones
Diffstat (limited to 'src/cmd/add_folder.rs')
-rw-r--r--src/cmd/add_folder.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/add_folder.rs b/src/cmd/add_folder.rs
index 1a77c63..82df1f9 100644
--- a/src/cmd/add_folder.rs
+++ b/src/cmd/add_folder.rs
@@ -19,14 +19,14 @@ pub fn add_folder(mut p: PathBuf, req: &[u8]) -> Result<Vec<u8>> {
return resp.write_to_bytes().map_err(|e| e.into());
}
- create_dir(p.clone())?;
+ create_dir(&p)?;
p.push("tmp");
- create_dir(p.clone())?;
+ create_dir(&p)?;
p.pop();
p.push("new");
- create_dir(p.clone())?;
+ create_dir(&p)?;
p.pop();
p.push("cur");