From 9ee2ef2e552909911410ef041a507f3d21e71118 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 12 Apr 2022 12:34:52 +0200 Subject: [PATCH] client: drop unnecessary clone Signed-off-by: Wolfgang Bumiller --- proxmox-backup-client/src/key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-backup-client/src/key.rs b/proxmox-backup-client/src/key.rs index 288d6c67..8b322843 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);