Derive Eq and friends for script::Instruction

This commit is contained in:
Andrew Poelstra 2016-05-04 14:03:58 +00:00
parent 96b4b050fd
commit 30904b67a7
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
[package] [package]
name = "bitcoin" name = "bitcoin"
version = "0.5.7" version = "0.5.8"
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"] authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
license = "CC0-1.0" license = "CC0-1.0"
homepage = "https://github.com/apoelstra/rust-bitcoin/" homepage = "https://github.com/apoelstra/rust-bitcoin/"

View File

@ -2590,6 +2590,7 @@ impl From<Vec<u8>> for Script {
impl_index_newtype!(Script, u8); impl_index_newtype!(Script, u8);
/// A "parsed opcode" which allows iterating over a Script in a more sensible way /// A "parsed opcode" which allows iterating over a Script in a more sensible way
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum Instruction<'a> { pub enum Instruction<'a> {
/// Push a bunch of data /// Push a bunch of data
PushBytes(&'a [u8]), PushBytes(&'a [u8]),