diff options
-rw-r--r-- | src/cmd/add_folder.rs | 6 |
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"); |