Skip to content

Commit

Permalink
Derive Hash on tendermint::Time (#1054) (#1055)
Browse files Browse the repository at this point in the history
Signed-off-by: Thane Thomson <[email protected]>

Co-authored-by: Mikhail Zabaluev <[email protected]>
  • Loading branch information
thanethomson and mzabaluev authored Dec 13, 2021
1 parent c31d8cb commit c6ffe1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[tendermint]` `Hash` is implemented for `tendermint::Time`
([#1054](https://github.com/informalsystems/tendermint-rs/pull/1054))
2 changes: 1 addition & 1 deletion tendermint/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::error::Error;
// For memory efficiency, the inner member is `PrimitiveDateTime`, with assumed
// UTC offset. The `assume_utc` method is used to get the operational
// `OffsetDateTime` value.
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Serialize, Deserialize)]
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
#[serde(try_from = "Timestamp", into = "Timestamp")]
pub struct Time(PrimitiveDateTime);

Expand Down

0 comments on commit c6ffe1b

Please sign in to comment.