Skip to content

Commit 0432102

Browse files
committed
Merge rust-bitcoin#4549: Add trait to InputWeightDescription
07c4f76 Add comparison traits to InputWeightPrediction (yancy) Pull request description: * Partial Eq is added to Enable symmetric and transitive comparison. * Eq is added to enable reflexive comparison. ACKs for top commit: apoelstra: ACK 07c4f76; successfully ran local tests tcharding: ACK 07c4f76 Tree-SHA512: baeb957f000ac0f3be89166243b9cc7126daad06ad6688b811037ca5f5713cad1184c7135b2f4f32235457c0f53eb41304846bdd8a84e57b10a6eff0905224e8
2 parents 6e66253 + 07c4f76 commit 0432102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/src/blockdata/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ pub const fn predict_weight_from_slices(
928928
/// This helper type collects information about an input to be used in [`predict_weight`] function.
929929
/// It can only be created using the [`new`](InputWeightPrediction::new) function or using other
930930
/// associated constants/methods.
931-
#[derive(Copy, Clone, Debug)]
931+
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
932932
pub struct InputWeightPrediction {
933933
script_size: usize,
934934
witness_size: usize,

0 commit comments

Comments
 (0)