Skip to content

Commit 809b720

Browse files
committed
Auto merge of #12213 - fee1-dead-contrib:fix-noop, r=weihanglo
Remove a noop `.clone`
2 parents e755955 + 772c8c6 commit 809b720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/sources/git/known_hosts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ fn check_ssh_known_hosts_loaded(
411411
// fingerprints (see FingerprintHash ssh config option). Here we only
412412
// support SHA256.
413413
let mut remote_fingerprint = cargo_util::Sha256::new();
414-
remote_fingerprint.update(remote_host_key.clone());
414+
remote_fingerprint.update(remote_host_key);
415415
let remote_fingerprint = STANDARD_NO_PAD.encode(remote_fingerprint.finish());
416416
let remote_host_key_encoded = STANDARD.encode(remote_host_key);
417417

0 commit comments

Comments
 (0)