diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
| commit | 181f756a9e8f7b664101058fe91e36b3858c2d02 (patch) | |
| tree | 542e7c694e91d8cc91fa97a328e9bda0567db679 /benches | |
| parent | 0d44cf532136f3ba8e34d6f967f9e844cfb9c3f0 (diff) | |
Format everything with rustfmt! 💚
Diffstat (limited to 'benches')
| -rw-r--r-- | benches/benchmarks.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs index f8e0d4b7..fce72585 100644 --- a/benches/benchmarks.rs +++ b/benches/benchmarks.rs @@ -15,14 +15,10 @@ const FONT_DIR: &str = "fonts"; const COMA: &str = include_str!("../tests/coma.typ"); fn parsing_benchmark(c: &mut Criterion) { - c.bench_function("parse-coma-28-lines", |b| { - b.iter(|| parse(COMA)) - }); + c.bench_function("parse-coma-28-lines", |b| b.iter(|| parse(COMA))); let long = COMA.repeat(100); - c.bench_function("parse-coma-2800-lines", |b| { - b.iter(|| parse(&long)) - }); + c.bench_function("parse-coma-2800-lines", |b| b.iter(|| parse(&long))); } fn typesetting_benchmark(c: &mut Criterion) { |
