From: Max Fang Date: Thu, 15 Dec 2022 06:18:59 +0000 (-0800) Subject: Derive `PartialEq`, `Eq` on `SyncTime` X-Git-Tag: v0.27.0-rc.1~7^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CommandStringError.html?a=commitdiff_plain;h=45d41416ede5d2e26a8ef4c2cac6f44d0346fb23;p=bdk Derive `PartialEq`, `Eq` on `SyncTime` This enables e.g. `assert_eq!` comparisons of `SyncTime` in tests. --- diff --git a/src/database/mod.rs b/src/database/mod.rs index e3e2b331..7f26a132 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,