We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e755955 + 772c8c6 commit 809b720Copy full SHA for 809b720
src/cargo/sources/git/known_hosts.rs
@@ -411,7 +411,7 @@ fn check_ssh_known_hosts_loaded(
411
// fingerprints (see FingerprintHash ssh config option). Here we only
412
// support SHA256.
413
let mut remote_fingerprint = cargo_util::Sha256::new();
414
- remote_fingerprint.update(remote_host_key.clone());
+ remote_fingerprint.update(remote_host_key);
415
let remote_fingerprint = STANDARD_NO_PAD.encode(remote_fingerprint.finish());
416
let remote_host_key_encoded = STANDARD.encode(remote_host_key);
417
0 commit comments