file-restore: avoid unnecessary clone
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
6526709d48
commit
e045d154e9
@ -47,7 +47,7 @@ enum ExtractPath {
|
||||
|
||||
fn parse_path(path: String, base64: bool) -> Result<ExtractPath, Error> {
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user