mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
remove 'let and return'
This commit is contained in:
parent
784f2e2ea1
commit
cf24620d3d
1 changed files with 2 additions and 3 deletions
|
@ -28,10 +28,9 @@ fn parse_octal(input: &str) -> IResult<&str, char> {
|
|||
}
|
||||
|
||||
pub fn reduce_octal_to_char(input: &str) -> String {
|
||||
let result = many0(alt((parse_octal, anychar)))(input)
|
||||
many0(alt((parse_octal, anychar)))(input)
|
||||
.map(|(_, r)| r)
|
||||
.unwrap()
|
||||
.into_iter()
|
||||
.collect();
|
||||
result
|
||||
.collect()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue