Skip to content

Commit

Permalink
Update tendermint/src/time.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Thane Thomson <thane@informal.systems>
  • Loading branch information
mzabaluev and thanethomson committed Dec 7, 2021
1 parent 6e16989 commit 01902bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tendermint/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl Time {
pub fn checked_add(self, duration: Duration) -> Option<Self> {
let duration = duration.try_into().ok()?;
let t = self.0.checked_add(duration)?;
Time::from_utc(t.assume_utc()).ok()
Self::from_utc(t.assume_utc()).ok()
}

/// Computes `self - duration`, returning `None` if an overflow occurred.
Expand Down

0 comments on commit 01902bc

Please sign in to comment.