Skip to content

Commit

Permalink
Derive PartialEq, Eq on SyncTime
Browse files Browse the repository at this point in the history
This enables e.g. `assert_eq!` comparisons of `SyncTime` in tests.
  • Loading branch information
MaxFangX committed Jan 19, 2023
1 parent eac739d commit 713472f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 713472f

Please sign in to comment.