summaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-30 22:18:55 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-30 22:18:55 +0200
commit181f756a9e8f7b664101058fe91e36b3858c2d02 (patch)
tree542e7c694e91d8cc91fa97a328e9bda0567db679 /benches
parent0d44cf532136f3ba8e34d6f967f9e844cfb9c3f0 (diff)
Format everything with rustfmt! 💚
Diffstat (limited to 'benches')
-rw-r--r--benches/benchmarks.rs8
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) {