There was an error while loading. Please reload this page.
1 parent 1937d90 commit e42d2a0Copy full SHA for e42d2a0
2 files changed
russh/src/helpers.rs
@@ -75,7 +75,7 @@ mod name_list {
75
impl Decode for NameList {
76
fn decode(reader: &mut impl ssh_encoding::Reader) -> Result<Self, ssh_encoding::Error> {
77
let s = String::decode(reader)?;
78
- Ok(Self::from_encoded_string(&s)?)
+ Self::from_encoded_string(&s)
79
}
80
81
type Error = ssh_encoding::Error;
russh/src/negotiation.rs
@@ -222,7 +222,7 @@ pub(crate) trait Select {
222
.cloned()
223
.collect::<Vec<_>>();
224
let _remote_kexes_no_ext = kex_list
225
- .into_iter()
+ .iter()
226
.filter(|k| {
227
kex::Name::try_from(k.as_str())
228
.ok()
0 commit comments