Skip to content

Commit

Permalink
Fix benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed Oct 12, 2024
1 parent 0cc506f commit c1c727c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/benches/typecheck_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ pub fn benchmark_type_checker(c: &mut Criterion) {
let builder = BuildManager::new(Settings::test_settings());
let file_path = PathBuf::from(path);
builder.build_one(&PathBuf::from("../../"), &file_path);
let file = builder.get_state(&file_path);
let id = builder.paths.get(&file_path).unwrap();
let file = builder.files.get(&id).unwrap();
builder.type_check(&file_path, &file);

0
Expand Down

0 comments on commit c1c727c

Please sign in to comment.