diff --git a/boa/benches/fib.rs b/boa/benches/fib.rs index 9917a5364c2..c29b6a400ba 100644 --- a/boa/benches/fib.rs +++ b/boa/benches/fib.rs @@ -3,8 +3,8 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion}; #[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))] #[cfg_attr( - all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"), - global_allocator + all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"), + global_allocator )] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; @@ -22,9 +22,9 @@ res; "#; fn fibonacci(c: &mut Criterion) { - c.bench_function("fibonacci (Execution)", move |b| { - b.iter(|| exec(black_box(SRC))) - }); + c.bench_function("fibonacci (Execution)", move |b| { + b.iter(|| exec(black_box(SRC))) + }); } criterion_group!(benches, fibonacci);