From 25c9a7fc17b90c4f12a8448d1e10679b164b1a4e Mon Sep 17 00:00:00 2001 From: yoshidan Date: Sat, 4 May 2024 12:58:02 +0900 Subject: [PATCH] fix clippy --- storage/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/src/client.rs b/storage/src/client.rs index d3104edd..28e05c1c 100644 --- a/storage/src/client.rs +++ b/storage/src/client.rs @@ -96,11 +96,11 @@ impl ClientConfig { match &ts.source_credentials { // Credential file is used. Some(cred) => { - self.project_id = cred.project_id.clone(); + self.project_id.clone_from(&cred.project_id); if let Some(pk) = &cred.private_key { self.default_sign_by = Some(PrivateKey(pk.clone().into_bytes())); } - self.default_google_access_id = cred.client_email.clone(); + self.default_google_access_id.clone_from(&cred.client_email); } // On Google Cloud None => {