From ee51de9bcec0c877994d61de091aa9785c36a096 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Tue, 5 Jan 2021 20:20:35 +0100 Subject: [PATCH] Adds Copy to ChannelHandshakeConfig and UserConfig This commits adds Copy to ChannelHandshakeConfig and UserConfig for consistency with the rest of config structs. --- lightning/src/util/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/util/config.rs b/lightning/src/util/config.rs index 712b5937b..f43423d7c 100644 --- a/lightning/src/util/config.rs +++ b/lightning/src/util/config.rs @@ -15,7 +15,7 @@ use ln::channelmanager::{BREAKDOWN_TIMEOUT, MAX_LOCAL_BREAKDOWN_TIMEOUT}; /// Configuration we set when applicable. /// /// Default::default() provides sane defaults. -#[derive(Clone, Debug)] +#[derive(Copy, Clone, Debug)] pub struct ChannelHandshakeConfig { /// Confirmations we will wait for before considering the channel locked in. /// Applied only for inbound channels (see ChannelHandshakeLimits::max_minimum_depth for the @@ -209,7 +209,7 @@ impl_writeable!(ChannelConfig, 8+1+1, { /// /// Default::default() provides sane defaults for most configurations /// (but currently with 0 relay fees!) -#[derive(Clone, Debug)] +#[derive(Copy, Clone, Debug)] pub struct UserConfig { /// Channel config that we propose to our counterparty. pub own_channel_config: ChannelHandshakeConfig, -- 2.39.5