Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanoroshiba committed Sep 27, 2024
1 parent dc7508e commit a266c03
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions crates/astria-merkle/benches/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@ use divan::{
};
use sha2::Sha256;

#[expect(
clippy::allow_attributes,
reason = "this allow is conditional and hence necessary"
)]
#[allow(
dead_code,
reason = "unused warning if `bench_include_allocs` feature is not enabled"
)]
#[cfg_attr(feature = "bench_include_allocs", global_allocator)]
#[cfg(feature = "bench_include_allocs")]
static ALLOC: divan::AllocProfiler = divan::AllocProfiler::system();

/// Used to specify the size of data for leaves.
Expand Down

0 comments on commit a266c03

Please sign in to comment.