From 30904b67a7d6b269ef749f1627827caf31d79dc9 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Wed, 4 May 2016 14:03:58 +0000 Subject: [PATCH] Derive Eq and friends for script::Instruction --- Cargo.toml | 2 +- src/blockdata/script.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2848be60..cdc66941 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bitcoin" -version = "0.5.7" +version = "0.5.8" authors = ["Andrew Poelstra "] license = "CC0-1.0" homepage = "https://github.com/apoelstra/rust-bitcoin/" diff --git a/src/blockdata/script.rs b/src/blockdata/script.rs index 3456be91..a3c33ce7 100644 --- a/src/blockdata/script.rs +++ b/src/blockdata/script.rs @@ -2590,6 +2590,7 @@ impl From> for Script { impl_index_newtype!(Script, u8); /// A "parsed opcode" which allows iterating over a Script in a more sensible way +#[derive(Debug, PartialEq, Eq, Clone)] pub enum Instruction<'a> { /// Push a bunch of data PushBytes(&'a [u8]),