Skip to content

Commit

Permalink
update benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa McHale committed Nov 27, 2017
1 parent 4c5d1d9 commit 2be946a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ fn concat_str(xs: Vec<&str>) -> String {

fn all<T>(input: IResult<&str, T, u32>) -> T {
match input {
IResult::Done(_, x) => x,
IResult::Error(e) => panic!("{}", e),
IResult::Incomplete(x) => panic!("{:?}", x),
Ok((_, x)) => x,
Err(e) => panic!("{:?}", e),
}
}

Expand Down

0 comments on commit 2be946a

Please sign in to comment.