]> git.proxmox.com Git - proxmox-backup.git/commitdiff
clippy: don't use clone a double reference
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 11 Sep 2019 12:02:30 +0000 (14:02 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 11 Sep 2019 12:02:30 +0000 (14:02 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/client/http_client.rs

index 85b71ffc1b39ead09c25593d12770446650c49e7..9e6359ba78b3f1c31e69cc3fdae39aa34104adca 100644 (file)
@@ -668,7 +668,7 @@ impl BackupClient {
 
         let src_path = src_path.as_ref();
 
-        let mut file = tokio::fs::File::open(src_path.clone())
+        let mut file = tokio::fs::File::open(src_path)
             .await
             .map_err(|err| format_err!("unable to open file {:?} - {}", src_path, err))?;