Skip to content

Commit e42d2a0

Browse files
committed
lint
1 parent 1937d90 commit e42d2a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

russh/src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mod name_list {
7575
impl Decode for NameList {
7676
fn decode(reader: &mut impl ssh_encoding::Reader) -> Result<Self, ssh_encoding::Error> {
7777
let s = String::decode(reader)?;
78-
Ok(Self::from_encoded_string(&s)?)
78+
Self::from_encoded_string(&s)
7979
}
8080

8181
type Error = ssh_encoding::Error;

russh/src/negotiation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub(crate) trait Select {
222222
.cloned()
223223
.collect::<Vec<_>>();
224224
let _remote_kexes_no_ext = kex_list
225-
.into_iter()
225+
.iter()
226226
.filter(|k| {
227227
kex::Name::try_from(k.as_str())
228228
.ok()

0 commit comments

Comments
 (0)