From 34a3845b0160df055e1a3b3eacb8cdc0901636e4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 11 Sep 2019 14:02:30 +0200 Subject: [PATCH] clippy: don't use clone a double reference Signed-off-by: Wolfgang Bumiller --- src/client/http_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/http_client.rs b/src/client/http_client.rs index 85b71ffc..9e6359ba 100644 --- a/src/client/http_client.rs +++ b/src/client/http_client.rs @@ -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))?;