From a266c034e57feb8a6d5fcf58f76b74d429d44d92 Mon Sep 17 00:00:00 2001 From: ethanoroshiba Date: Fri, 27 Sep 2024 10:07:34 -0500 Subject: [PATCH] small improvement --- crates/astria-merkle/benches/benchmark.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crates/astria-merkle/benches/benchmark.rs b/crates/astria-merkle/benches/benchmark.rs index 7fb8592ba..085561efa 100644 --- a/crates/astria-merkle/benches/benchmark.rs +++ b/crates/astria-merkle/benches/benchmark.rs @@ -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.