Conditionally compile the hex macro
We only use this macro when not fuzzing, add a cfg attribute to build it in only when needed.
This commit is contained in:
parent
69349a858f
commit
5f611f6f7f
|
@ -1651,6 +1651,7 @@ mod test {
|
|||
use crate::Error::{InvalidPublicKey, InvalidSecretKey};
|
||||
use crate::Scalar;
|
||||
|
||||
#[cfg(not(fuzzing))]
|
||||
macro_rules! hex {
|
||||
($hex:expr) => ({
|
||||
let mut result = vec![0; $hex.len() / 2];
|
||||
|
|
Loading…
Reference in New Issue