clippy: don't use clone a double reference
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
d159610265
commit
34a3845b01
@ -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))?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user