]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Implement Clone for InvalidShutdownScript 2021-11-trivial-impls
authorMatt Corallo <git@bluematt.me>
Tue, 19 Oct 2021 06:20:12 +0000 (06:20 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 29 Nov 2021 01:30:50 +0000 (01:30 +0000)
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.

lightning/src/ln/script.rs

index 0c060e4523374b71f569c5a4338d617177dfe6ba..a9f44bae1aec79199230d467f426b50934c225dd 100644 (file)
@@ -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].
        ///