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 9958a0c commit 7dbe37a
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 @@ -95,7 +95,7 @@ impl Time {
}

/// Parse [`Time`] from an RFC 3339 date
pub fn parse_from_rfc3339(s: &str) -> Result<Time, Error> {
pub fn parse_from_rfc3339(s: &str) -> Result<Self, Error> {
let date = OffsetDateTime::parse(s, &Rfc3339)
.map_err(Error::time_parse)?
.to_offset(offset!(UTC));
Expand Down

0 comments on commit 7dbe37a

Please sign in to comment.