Merge rust-bitcoin/rust-bitcoin#1376: Make Instruction Copy

80f6a4c6c5 Make Instruction Copy (Casey Rodarmor)

Pull request description:

  Closes #1368.

ACKs for top commit:
  Kixunil:
    ACK 80f6a4c6c5
  tcharding:
    ACK 80f6a4c6c5
  apoelstra:
    ACK 80f6a4c6c5

Tree-SHA512: b9eb25edd524dbcc05d6285387c23b08f611dd3b42ccc7ad74607e3ebe83041259c21cdced533a64ff1060df6e7d08e5174b2a89a1dc19e154c5883824dd2971
This commit is contained in:
Andrew Poelstra 2022-11-12 22:30:32 +00:00
commit 5d23e8c962
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -831,7 +831,7 @@ impl From<&Script> for WScriptHash {
} }
/// 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)] #[derive(Debug, PartialEq, Eq, Copy, 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]),