From 1356f039a712cf7b9590453b5010218c68153257 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Wed, 20 Apr 2022 13:35:35 +0200 Subject: [PATCH] lib: implement PartialEq for miniscript::Error --- src/lib.rs | 2 +- src/miniscript/analyzable.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 368e72361..f81deacd0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -508,7 +508,7 @@ pub trait ForEachKey { /// Miniscript -#[derive(Debug)] +#[derive(Debug, PartialEq)] pub enum Error { /// Opcode appeared which is not part of the script subset InvalidOpcode(opcodes::All), diff --git a/src/miniscript/analyzable.rs b/src/miniscript/analyzable.rs index 9ed62acf4..a6d84c23d 100644 --- a/src/miniscript/analyzable.rs +++ b/src/miniscript/analyzable.rs @@ -31,7 +31,7 @@ use {Miniscript, MiniscriptKey, ScriptContext}; /// 3. The script is malleable and thereby some of satisfaction weight /// guarantees are not satisfied. /// 4. It has repeated publickeys -#[derive(Debug)] +#[derive(Debug, PartialEq)] pub enum AnalysisError { /// Top level is not safe. SiglessBranch,