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:
Tobin C. Harding 2022-06-29 11:11:39 +10:00
parent 69349a858f
commit 5f611f6f7f
1 changed files with 1 additions and 0 deletions

View File

@ -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];