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
1 changed files with 1 additions and 1 deletions

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