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,