Skip to content

Commit e9774ae

Browse files
authored
Merge pull request #1189 from TheBlueMatt/2021-11-trivial-impls
Derive `Clone` and friends on additional public structs
2 parents 1a74367 + f118bb7 commit e9774ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lightning/src/ln/chan_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ impl BuiltCommitmentTransaction {
940940
///
941941
/// This class can be used inside a signer implementation to generate a signature given the relevant
942942
/// secret key.
943+
#[derive(Clone, Hash, PartialEq)]
943944
pub struct ClosingTransaction {
944945
to_holder_value_sat: u64,
945946
to_counterparty_value_sat: u64,

lightning/src/ln/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use io;
2121
pub struct ShutdownScript(ShutdownScriptImpl);
2222

2323
/// An error occurring when converting from [`Script`] to [`ShutdownScript`].
24-
#[derive(Debug)]
24+
#[derive(Clone, Debug)]
2525
pub struct InvalidShutdownScript {
2626
/// The script that did not meet the requirements from [BOLT #2].
2727
///

0 commit comments

Comments
 (0)