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.
.clone
1 parent 6240788 commit 772c8c6Copy full SHA for 772c8c6
src/cargo/sources/git/known_hosts.rs
@@ -408,7 +408,7 @@ fn check_ssh_known_hosts_loaded(
408
// fingerprints (see FingerprintHash ssh config option). Here we only
409
// support SHA256.
410
let mut remote_fingerprint = cargo_util::Sha256::new();
411
- remote_fingerprint.update(remote_host_key.clone());
+ remote_fingerprint.update(remote_host_key);
412
let remote_fingerprint = STANDARD_NO_PAD.encode(remote_fingerprint.finish());
413
let remote_host_key_encoded = STANDARD.encode(remote_host_key);
414
0 commit comments