Skip to content

Commit

Permalink
fix missing case in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Jan 19, 2023
1 parent 103f32f commit 4c6e45e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions benchmarks/benches/ini.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use nom::{
character::complete::{
alphanumeric1 as alphanumeric, char, multispace1 as multispace, space1 as space,
},
combinator::{map, map_res, opt},
combinator::{map_res, opt},
multi::many,
sequence::{delimited, pair, separated_pair, terminated, tuple},
IResult,
Expand Down Expand Up @@ -37,10 +37,7 @@ fn categories(i: &[u8]) -> IResult<&[u8], HashMap<&str, HashMap<&str, &str>>> {
separated_pair(
category,
opt(multispace),
map(
many(0.., terminated(key_value, opt(multispace))),
|vec: Vec<_>| vec.into_iter().collect(),
),
many(0.., terminated(key_value, opt(multispace))),
),
)(i)
}
Expand Down

0 comments on commit 4c6e45e

Please sign in to comment.