From b46526578fc7fd7e892f891e93564e3860a0c57d Mon Sep 17 00:00:00 2001 From: Petko Date: Tue, 3 Jan 2023 01:03:40 +0200 Subject: [PATCH] Add helpful annotations. --- 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