Skip to content

Commit 6131ffd

Browse files
committed
Merge #69: conditionally derive Ord
34e9d4c conditionally derive Ord (Riccardo Casatta) Pull request description: Otherwise in fuzzing configuration there is a double impl Noticed the error in rust-elements CI ACKs for top commit: apoelstra: ACK 34e9d4c Tree-SHA512: 4a2651229cdf6ff82986ec7e821702045735e709cec1cb067cfcb3fcd179d7100a51cd865251363f2279c49d43e083024cb1357cb25f92f2b28940bbf2af8944
2 parents 8a26283 + 34e9d4c commit 6131ffd

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)