From 01902bc1bfe3084abebf2b0c5dc564271dfe8a65 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Tue, 7 Dec 2021 11:20:02 +0200 Subject: [PATCH] Update tendermint/src/time.rs Co-authored-by: Thane Thomson --- tendermint/src/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tendermint/src/time.rs b/tendermint/src/time.rs index c717e91f4..e864a78c6 100644 --- a/tendermint/src/time.rs +++ b/tendermint/src/time.rs @@ -111,7 +111,7 @@ impl Time { pub fn checked_add(self, duration: Duration) -> Option { 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.