From e045d154e9d084af7f67f9cbbf36873ddbff9a1c Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 23 Apr 2021 13:22:30 +0200 Subject: [PATCH] file-restore: avoid unnecessary clone Signed-off-by: Wolfgang Bumiller --- src/bin/proxmox-file-restore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/proxmox-file-restore.rs b/src/bin/proxmox-file-restore.rs index bb8261bb..ffc8b0a5 100644 --- a/src/bin/proxmox-file-restore.rs +++ b/src/bin/proxmox-file-restore.rs @@ -47,7 +47,7 @@ enum ExtractPath { fn parse_path(path: String, base64: bool) -> Result { let mut bytes = if base64 { - base64::decode(path.clone()) + base64::decode(&path) .map_err(|err| format_err!("Failed base64-decoding path '{}' - {}", path, err))? } else { path.into_bytes()