From 22e42ab86c673ec4b2865f98f20bf10139a9dbf9 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Mon, 26 Aug 2024 13:01:54 +0200 Subject: [PATCH] fix test code being unnecessarily feature gated These cfg attributes were here because these tests used the `vec!` macro in the past. --- hashes/src/hash160.rs | 1 - hashes/src/hmac.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/hashes/src/hash160.rs b/hashes/src/hash160.rs index 4fd7e402e..78039cde5 100644 --- a/hashes/src/hash160.rs +++ b/hashes/src/hash160.rs @@ -55,7 +55,6 @@ mod tests { use crate::{hash160, HashEngine}; #[derive(Clone)] - #[cfg(feature = "alloc")] struct Test { input: [u8; 65], output: [u8; 20], diff --git a/hashes/src/hmac.rs b/hashes/src/hmac.rs index 7b8c1a401..2f2bbaff4 100644 --- a/hashes/src/hmac.rs +++ b/hashes/src/hmac.rs @@ -164,7 +164,6 @@ impl<'de, T: GeneralHash + Deserialize<'de>> Deserialize<'de> for Hmac { #[cfg(test)] mod tests { #[test] - #[cfg(feature = "alloc")] fn test() { use crate::{sha256, GeneralHash as _, Hash as _, HashEngine, Hmac, HmacEngine};