Skip to content

Commit a4be941

Browse files
committed
Feature gate unused const
Clippy lint for a test const that is only used in an alloc feature gated test. Feature gate the cost as well.
1 parent 5e2eeb8 commit a4be941

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

hashes/src/sha256/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ fn hash_unoptimized() {
178178
}
179179

180180
// The midstate of an empty hash engine tagged with "TapLeaf".
181+
#[cfg(feature = "alloc")]
181182
const TAP_LEAF_MIDSTATE: Midstate = Midstate::new(
182183
[
183184
156, 224, 228, 230, 124, 17, 108, 57, 56, 179, 202, 242, 195, 15, 80, 137, 211, 243, 147,

0 commit comments

Comments
 (0)