clippy: don't use clone a double reference

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-09-11 14:02:30 +02:00
parent d159610265
commit 34a3845b01

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