1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

parser api wip

This commit is contained in:
Robin Appelman 2019-12-22 15:47:00 +01:00
commit 42358f243b
12 changed files with 52 additions and 56 deletions

View file

@ -30,7 +30,7 @@ impl MessageHandler for AllMessages {
test::black_box(message);
}
fn get_output(self, state: &ParserState) -> Self::Output {
fn into_output(self, state: &ParserState) -> Self::Output {
test::black_box(true)
}
}
@ -41,7 +41,7 @@ fn bench_all(input_file: &str, b: &mut Bencher) {
let stream = demo.get_stream();
b.iter(|| {
let _ =
test::black_box(DemoParser::parse_with_analyser(stream.clone(), AllMessages).unwrap());
test::black_box(DemoParser::new_with_analyser(stream.clone(), AllMessages).unwrap());
});
}