From 178cdc9dfa42519b102108553d23ae302bf4a1d0 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Sun, 17 Jul 2022 18:50:12 -0400 Subject: [PATCH] Update benches so they compile (#582) --- benches/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/build.rs b/benches/build.rs index 0b1e8934..456a5339 100644 --- a/benches/build.rs +++ b/benches/build.rs @@ -3,7 +3,7 @@ use std::path::Path; use criterion::{criterion_group, criterion_main, BatchSize, Criterion}; use tempfile::{tempdir, TempDir}; -use librojo::cli::{build, BuildCommand}; +use librojo::cli::BuildCommand; pub fn benchmark_small_place(c: &mut Criterion) { bench_build_place(c, "Small Place", "test-projects/benchmark_small_place") @@ -20,7 +20,7 @@ fn bench_build_place(c: &mut Criterion, name: &str, path: &str) { group.bench_function("build", |b| { b.iter_batched( || place_setup(path), - |(_dir, options)| build(options).unwrap(), + |(_dir, options)| options.run().unwrap(), BatchSize::SmallInput, ) });