From: Matt Corallo Date: Tue, 19 Oct 2021 06:20:12 +0000 (+0000) Subject: Implement Clone for InvalidShutdownScript X-Git-Tag: v0.0.104~20^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f118bb776a5d242916f836e538511cd70f6d01a4;p=rust-lightning Implement Clone for InvalidShutdownScript Users hopefully shouldn't have much of a reason to use this, but the bindings may need it to ensure no leaking pointers over an ffi. --- diff --git a/lightning/src/ln/script.rs b/lightning/src/ln/script.rs index 0c060e452..a9f44bae1 100644 --- a/lightning/src/ln/script.rs +++ b/lightning/src/ln/script.rs @@ -21,7 +21,7 @@ use io; pub struct ShutdownScript(ShutdownScriptImpl); /// An error occurring when converting from [`Script`] to [`ShutdownScript`]. -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct InvalidShutdownScript { /// The script that did not meet the requirements from [BOLT #2]. ///