From df7da4e907d9674f0f61a56f08a046335a34c000 Mon Sep 17 00:00:00 2001 From: Hanif Bin Ariffin Date: Sun, 1 Aug 2021 20:50:41 +0800 Subject: [PATCH] Fixed clippy issues Signed-off-by: Hanif Bin Ariffin --- src/uu/tr/src/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/tr/src/convert.rs b/src/uu/tr/src/convert.rs index c143681e3..d1e925c2b 100644 --- a/src/uu/tr/src/convert.rs +++ b/src/uu/tr/src/convert.rs @@ -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() },