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()