From c77bf4e4db1dd6974f884022549b2d82f134eb45 Mon Sep 17 00:00:00 2001 From: Thomas Krause Date: Mon, 30 Dec 2024 10:50:59 +0100 Subject: [PATCH] Make `UpdateEvent` comparable --- CHANGELOG.md | 4 ++++ core/src/graph/update.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90747bab1..5a3ac16aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- `UpdateEvent` now implements `PartialEq` to make possible to compare changes. + ## [3.5.1] - 2024-09-25 ### Fixed diff --git a/core/src/graph/update.rs b/core/src/graph/update.rs index 8c55dfbf9..bcbe56708 100644 --- a/core/src/graph/update.rs +++ b/core/src/graph/update.rs @@ -15,7 +15,7 @@ use sstable::{SSIterator, Table, TableBuilder, TableIterator}; use tempfile::NamedTempFile; /// Describes a single update on the graph. -#[derive(Serialize, Deserialize, Clone, Debug)] +#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)] pub enum UpdateEvent { /// Add a node with a name and type. AddNode {