Skip to content

Commit

Permalink
fix: changed again the 'generate_commands' signature without reflecti…
Browse files Browse the repository at this point in the history
…ng it on the benchmarks module
  • Loading branch information
TheRustifyer committed Jul 12, 2024
1 parent 27a99bb commit 01a73a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zork++/benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ pub fn build_project_benchmark(c: &mut Criterion) {
config_file::zork_cfg_from_file(utils::constants::CONFIG_FILE_MOCK).unwrap();
let cli_args = CliArgs::parse();

Check failure on line 18 in zork++/benches/benchmarks.rs

View workflow job for this annotation

GitHub Actions / Verify code formatting

Diff in /home/runner/work/Zork/Zork/zork++/benches/benchmarks.rs
let program_data = build_model(config, &cli_args, Path::new(".")).unwrap();

let mut cache = ZorkCache::default();

c.bench_function("Generate commands", |b| {
b.iter(|| {
generate_commands(
black_box(&program_data),
black_box(ZorkCache::default()),
black_box(&mut cache),
&cli_args,
)
})
Expand Down

0 comments on commit 01a73a3

Please sign in to comment.