From 0c15c01eb182d557b71e660a6c39fe7213d2d39d Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 28 Jun 2022 13:30:33 +1000 Subject: [PATCH] Use fuzzing not feature = "fuzzing" Currently the following command fails `RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS='--cfg=fuzzing' cargo test --all --all-features` This is because `fuzzing` is not a feature, we should be using `fuzzing` directly not `feature = "fuzzing"`. I have no idea how this got past CI. --- src/key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key.rs b/src/key.rs index b862f19b9..718c445b0 100644 --- a/src/key.rs +++ b/src/key.rs @@ -101,7 +101,7 @@ pub const ONE_KEY: SecretKey = SecretKey([0, 0, 0, 0, 0, 0, 0, 0, /// [`bincode`]: https://docs.rs/bincode /// [`cbor`]: https://docs.rs/cbor #[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)] -#[cfg_attr(feature = "fuzzing", derive(PartialOrd, Ord))] +#[cfg_attr(fuzzing, derive(PartialOrd, Ord))] #[repr(transparent)] pub struct PublicKey(ffi::PublicKey);