Skip to content

Commit 07c4f76

Browse files
committed
Add comparison traits to InputWeightPrediction
* Partial Eq is added to Enable symmetric and transitive comparison. * Eq is added to enable reflexive comparison.
1 parent 855299a commit 07c4f76

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)