Skip to content

Commit 772c8c6

Browse files
committed
Remove a noop .clone
1 parent 6240788 commit 772c8c6

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
@@ -408,7 +408,7 @@ fn check_ssh_known_hosts_loaded(
408408
// fingerprints (see FingerprintHash ssh config option). Here we only
409409
// support SHA256.
410410
let mut remote_fingerprint = cargo_util::Sha256::new();
411-
remote_fingerprint.update(remote_host_key.clone());
411+
remote_fingerprint.update(remote_host_key);
412412
let remote_fingerprint = STANDARD_NO_PAD.encode(remote_fingerprint.finish());
413413
let remote_host_key_encoded = STANDARD.encode(remote_host_key);
414414

0 commit comments

Comments
 (0)