fix test code being unnecessarily feature gated

These cfg attributes were here because these tests used the `vec!` macro
in the past.
This commit is contained in:
Antoni Spaanderman 2024-08-26 13:01:54 +02:00
parent 283651ba4a
commit 22e42ab86c
No known key found for this signature in database
GPG Key ID: AE0B68E552E5DF8C
2 changed files with 0 additions and 2 deletions

View File

@ -55,7 +55,6 @@ mod tests {
use crate::{hash160, HashEngine}; use crate::{hash160, HashEngine};
#[derive(Clone)] #[derive(Clone)]
#[cfg(feature = "alloc")]
struct Test { struct Test {
input: [u8; 65], input: [u8; 65],
output: [u8; 20], output: [u8; 20],

View File

@ -164,7 +164,6 @@ impl<'de, T: GeneralHash + Deserialize<'de>> Deserialize<'de> for Hmac<T> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
#[test] #[test]
#[cfg(feature = "alloc")]
fn test() { fn test() {
use crate::{sha256, GeneralHash as _, Hash as _, HashEngine, Hmac, HmacEngine}; use crate::{sha256, GeneralHash as _, Hash as _, HashEngine, Hmac, HmacEngine};