From f70249b2cc18c0cf2585fe86b7896837b022a1df Mon Sep 17 00:00:00 2001 From: Petko Pavlovski Date: Tue, 3 Jan 2023 12:30:14 +0200 Subject: [PATCH] Derive missing copy clone and debug (#35) --- waku-bindings/src/general/mod.rs | 2 +- waku-bindings/src/node/peers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/waku-bindings/src/general/mod.rs b/waku-bindings/src/general/mod.rs index 8b93c14..cd5c012 100644 --- a/waku-bindings/src/general/mod.rs +++ b/waku-bindings/src/general/mod.rs @@ -21,7 +21,7 @@ pub type MessageId = String; /// Protocol identifiers #[non_exhaustive] -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] pub enum ProtocolId { Store, Lightpush, diff --git a/waku-bindings/src/node/peers.rs b/waku-bindings/src/node/peers.rs index 2879cc8..34168e3 100644 --- a/waku-bindings/src/node/peers.rs +++ b/waku-bindings/src/node/peers.rs @@ -125,7 +125,7 @@ pub fn waku_peer_count() -> Result { pub type Protocol = String; /// Peer data from known/connected waku nodes -#[derive(Deserialize, Clone)] +#[derive(Deserialize, Clone, Debug)] #[serde(rename_all = "camelCase")] pub struct WakuPeerData { /// Waku peer id