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:
parent
283651ba4a
commit
22e42ab86c
|
@ -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],
|
||||||
|
|
|
@ -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};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue