From 80f6a4c6c5301c845000498beef23fe5b3fe8439 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 7 Nov 2022 22:47:20 -0800 Subject: [PATCH] Make Instruction Copy --- bitcoin/src/blockdata/script.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/blockdata/script.rs b/bitcoin/src/blockdata/script.rs index fc536f23..01f28249 100644 --- a/bitcoin/src/blockdata/script.rs +++ b/bitcoin/src/blockdata/script.rs @@ -785,7 +785,7 @@ impl From<&Script> for WScriptHash { } /// 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> { /// Push a bunch of data. PushBytes(&'a [u8]),