Skip to content

Commit 1356f03

Browse files
committed
lib: implement PartialEq for miniscript::Error
1 parent 19f4e06 commit 1356f03

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
@@ -508,7 +508,7 @@ pub trait ForEachKey<Pk: MiniscriptKey> {
508508

509509
/// Miniscript
510510
511-
#[derive(Debug)]
511+
#[derive(Debug, PartialEq)]
512512
pub enum Error {
513513
/// Opcode appeared which is not part of the script subset
514514
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)