From 44029c90bb60caf93f05c188ba33cf25b0b76916 Mon Sep 17 00:00:00 2001 From: mb Date: Mon, 17 Jun 2024 18:53:41 +0200 Subject: [PATCH] Derive PartialEq for PubSub elements --- parsers/src/pubsub/event.rs | 4 ++-- parsers/src/pubsub/owner.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parsers/src/pubsub/event.rs b/parsers/src/pubsub/event.rs index 1f98478..1461220 100644 --- a/parsers/src/pubsub/event.rs +++ b/parsers/src/pubsub/event.rs @@ -14,13 +14,13 @@ use crate::Element; use jid::Jid; /// Event wrapper for a PubSub ``. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub struct Item(pub PubSubItem); impl_pubsub_item!(Item, PUBSUB_EVENT); /// Represents an event happening to a PubSub node. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub enum PubSubEvent { /* Collection { diff --git a/parsers/src/pubsub/owner.rs b/parsers/src/pubsub/owner.rs index 43c6507..3f955bb 100644 --- a/parsers/src/pubsub/owner.rs +++ b/parsers/src/pubsub/owner.rs @@ -122,7 +122,7 @@ generate_element!( /// Main payload used to communicate with a PubSubOwner service. /// /// `` -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub enum PubSubOwner { /// Manage the affiliations of a node. Affiliations(Affiliations),