Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshidan committed May 4, 2024
1 parent 7dd69b0 commit 25c9a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 25c9a7f

Please sign in to comment.