Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Dec 7, 2024
1 parent 02c86e0 commit 5511842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions russh/src/negotiation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Preferred {
.filter(|n| {
available_host_keys
.iter()
.any(|k| is_key_compatible_with_algo(k, *n))
.any(|k| is_key_compatible_with_algo(k, n))
})
.cloned()
.collect::<Vec<_>>()
Expand Down Expand Up @@ -450,7 +450,7 @@ pub fn write_kex(
server_config
.keys
.iter()
.any(|k| is_key_compatible_with_algo(k, *algo))
.any(|k| is_key_compatible_with_algo(k, algo))
})
.map(|x| x.to_string())
.collect(),
Expand Down
2 changes: 1 addition & 1 deletion russh/src/server/kex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl KexInit {
let Some(matching_key_index) = config
.keys
.iter()
.position(|key| is_key_compatible_with_algo(&key, &algo.key))
.position(|key| is_key_compatible_with_algo(key, &algo.key))
else {
debug!("unknown key {:?}", algo.key);
return Err(Error::UnknownKey);
Expand Down

0 comments on commit 5511842

Please sign in to comment.