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, ) });