mirror of
https://github.com/uutils/coreutils
synced 2024-12-18 00:53:25 +00:00
Fixed clippy issues
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
parent
106ba4b77d
commit
df7da4e907
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ fn parse_octal(input: &str) -> IResult<&str, char> {
|
||||||
preceded(tag("\\"), recognize(many_m_n(1, 3, one_of("01234567")))),
|
preceded(tag("\\"), recognize(many_m_n(1, 3, one_of("01234567")))),
|
||||||
|out: &str| {
|
|out: &str| {
|
||||||
u32::from_str_radix(out, 8)
|
u32::from_str_radix(out, 8)
|
||||||
.map(|u| char::from_u32(u))
|
.map(char::from_u32)
|
||||||
.ok()
|
.ok()
|
||||||
.flatten()
|
.flatten()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue