Fixed clippy issues

Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
Hanif Bin Ariffin 2021-08-01 20:50:41 +08:00
parent 106ba4b77d
commit df7da4e907

View file

@ -13,7 +13,7 @@ fn parse_octal(input: &str) -> IResult<&str, char> {
preceded(tag("\\"), recognize(many_m_n(1, 3, one_of("01234567")))),
|out: &str| {
u32::from_str_radix(out, 8)
.map(|u| char::from_u32(u))
.map(char::from_u32)
.ok()
.flatten()
},