Skip to content

Commit

Permalink
Derive Hash on tendermint::Time again (#1278)
Browse files Browse the repository at this point in the history
This reintroduces #1054 after it was removed in #1203.
  • Loading branch information
kevinji committed Mar 6, 2023
1 parent d550fdf commit d994465
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 @@
- Derive `Hash` on `tendermint::Time`
([#1278](https://github.com/informalsystems/tendermint-rs/issues/1278))
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, prelude::*};
// 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, Hash, PartialOrd, Ord, Serialize, Deserialize)]
#[serde(try_from = "Timestamp", into = "Timestamp")]
pub struct Time(PrimitiveDateTime);

Expand Down

0 comments on commit d994465

Please sign in to comment.