Skip to content

Commit

Permalink
Remove a noop .clone
Browse files Browse the repository at this point in the history
  • Loading branch information
fee1-dead authored and weihanglo committed Aug 7, 2023
1 parent ef11e90 commit 66f76c8
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 @@ -408,7 +408,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 66f76c8

Please sign in to comment.