From 6ed535387df0dffa72a10e601b8ea37c99345d84 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sun, 17 Nov 2024 17:54:29 +0100 Subject: remove some not needed clones --- src/cmd/add_folder.rs | 6 +++--- 1 file 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> { 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"); -- cgit v1.2.3