client: drop unnecessary clone

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-04-12 12:34:52 +02:00
parent 12558e0dde
commit 9ee2ef2e55

View File

@ -293,7 +293,7 @@ fn show_key(path: Option<String>, 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(&param);