Skip to content

Commit 34e9d4c

Browse files
committed
conditionally derive Ord
Otherwise in fuzzing configuration there is a double impl
1 parent 8a26283 commit 34e9d4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

secp256k1-zkp-sys/src/zkp.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,8 @@ impl From<Tag> for [u8; 32] {
533533

534534
// TODO: Replace this with ffi::PublicKey?
535535
#[repr(C)]
536-
#[derive(Copy, Clone, PartialOrd, Ord)]
536+
#[derive(Copy, Clone)]
537+
#[cfg_attr(not(fuzzing), derive(Ord, PartialOrd))]
537538
pub struct PedersenCommitment([c_uchar; 64]);
538539
impl_array_newtype!(PedersenCommitment, c_uchar, 64);
539540
impl_raw_debug!(PedersenCommitment);

0 commit comments

Comments
 (0)