From 09dfe3931dd0d14707b52d2b2f0189da3b5c0270 Mon Sep 17 00:00:00 2001 From: elsirion Date: Fri, 13 May 2022 21:51:13 +0000 Subject: [PATCH] Make eligible types `Copy` --- cln-rpc/src/primitives.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cln-rpc/src/primitives.rs b/cln-rpc/src/primitives.rs index 4db602da1..0987fafde 100644 --- a/cln-rpc/src/primitives.rs +++ b/cln-rpc/src/primitives.rs @@ -78,7 +78,7 @@ impl Amount { } } -#[derive(Clone, Debug)] +#[derive(Clone, Copy, Debug)] pub struct ShortChannelId(u64); impl Serialize for ShortChannelId { @@ -134,7 +134,7 @@ impl ShortChannelId { } } -#[derive(Clone, Debug)] +#[derive(Clone, Copy, Debug)] pub struct Secret([u8; 32]); impl TryFrom> for Secret { @@ -177,7 +177,7 @@ impl Secret { } } -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct Outpoint { pub txid: Sha256, pub outnum: u32,