diff --git a/src/parse/response.rs b/src/parse/response.rs index 115dc87..148f443 100644 --- a/src/parse/response.rs +++ b/src/parse/response.rs @@ -116,7 +116,7 @@ pub fn Reply_code(input: &[u8]) -> IResult<&[u8], u16> { take_while_m_n(3, 3, nom::character::is_digit), std::str::from_utf8, ), - |s| u16::from_str_radix(s, 10), + str::parse, )(input) }