From 45d41416ede5d2e26a8ef4c2cac6f44d0346fb23 Mon Sep 17 00:00:00 2001 From: Max Fang Date: Wed, 14 Dec 2022 22:18:59 -0800 Subject: [PATCH] Derive `PartialEq`, `Eq` on `SyncTime` This enables e.g. `assert_eq!` comparisons of `SyncTime` in tests. --- src/database/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/mod.rs b/src/database/mod.rs index e3e2b3310..7f26a1320 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -49,7 +49,7 @@ pub use memory::MemoryDatabase; /// Blockchain state at the time of syncing /// /// Contains only the block time and height at the moment -#[derive(Clone, Debug, Serialize, Deserialize)] +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct SyncTime { /// Block timestamp and height at the time of sync pub block_time: BlockTime,