Skip to content

Commit

Permalink
Auto merge of #12213 - fee1-dead-contrib:fix-noop, r=weihanglo
Browse files Browse the repository at this point in the history
Remove a noop `.clone`
  • Loading branch information
bors committed Jun 1, 2023
2 parents e755955 + 772c8c6 commit 809b720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/sources/git/known_hosts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ fn check_ssh_known_hosts_loaded(
// fingerprints (see FingerprintHash ssh config option). Here we only
// support SHA256.
let mut remote_fingerprint = cargo_util::Sha256::new();
remote_fingerprint.update(remote_host_key.clone());
remote_fingerprint.update(remote_host_key);
let remote_fingerprint = STANDARD_NO_PAD.encode(remote_fingerprint.finish());
let remote_host_key_encoded = STANDARD.encode(remote_host_key);

Expand Down

0 comments on commit 809b720

Please sign in to comment.