diff --git a/proxmox-backup-client/src/key.rs b/proxmox-backup-client/src/key.rs index 288d6c677..8b322843d 100644 --- a/proxmox-backup-client/src/key.rs +++ b/proxmox-backup-client/src/key.rs @@ -293,7 +293,7 @@ fn show_key(path: Option, param: Value) -> Result<(), Error> { .ok_or_else(|| format_err!("no encryption file provided and no default file found"))?, }; - let config: KeyConfig = serde_json::from_slice(&file_get_contents(path.clone())?)?; + let config: KeyConfig = serde_json::from_slice(&file_get_contents(&path)?)?; let output_format = get_output_format(¶m);