Skip to content

Commit be843f2

Browse files
authored
fix: formatter benchmark errors (#2222)
1 parent df006e0 commit be843f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/clarinet-format/benches/formatter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mod format_benches {
3333
bencher.bench_local(|| {
3434
for file_path in &files {
3535
let source = fs::read_to_string(file_path).expect("Failed to read test file");
36-
black_box(formatter.format(black_box(&source)));
36+
black_box(formatter.format(black_box(&source), None));
3737
}
3838
});
3939
}
@@ -45,7 +45,7 @@ mod format_benches {
4545
let source = fs::read_to_string("tests/golden/clarity-bitcoin.clar")
4646
.expect("Failed to read test file");
4747

48-
bencher.bench_local(|| black_box(formatter.format(black_box(&source))));
48+
bencher.bench_local(|| black_box(formatter.format(black_box(&source), None)));
4949
}
5050
}
5151

0 commit comments

Comments
 (0)