Skip to content

Commit 225e9d3

Browse files
committed
Merge #358: lib: implement PartialEq for miniscript::Error
1356f03 lib: implement PartialEq for miniscript::Error (Antoine Poinsot) Pull request description: This helps a lot downstream, and we can do that now that rust-bitcoin derives `PartialEq` everywhere. ACKs for top commit: tcharding: ACK 1356f03 sanket1729: ACK 1356f03 Tree-SHA512: 112e56bf58402f65e41263d4cb51e7826d58d0130594ff51b794c77c7852e67801056155d6fbb78d7adec425db45fb25f768a60ce80eb6b9536aaff72e322f2b
2 parents 709d641 + 1356f03 commit 225e9d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ pub trait ForEachKey<Pk: MiniscriptKey> {
497497

498498
/// Miniscript
499499
500-
#[derive(Debug)]
500+
#[derive(Debug, PartialEq)]
501501
pub enum Error {
502502
/// Opcode appeared which is not part of the script subset
503503
InvalidOpcode(opcodes::All),

src/miniscript/analyzable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use {Miniscript, MiniscriptKey, ScriptContext};
3131
/// 3. The script is malleable and thereby some of satisfaction weight
3232
/// guarantees are not satisfied.
3333
/// 4. It has repeated publickeys
34-
#[derive(Debug)]
34+
#[derive(Debug, PartialEq)]
3535
pub enum AnalysisError {
3636
/// Top level is not safe.
3737
SiglessBranch,

0 commit comments

Comments
 (0)