Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique committed Nov 7, 2024
1 parent cf048a0 commit a64c8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tendermint/src/abci/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ mod v0_34 {
fn try_from(value: RawTimeoutsInfo) -> Result<Self, Self::Error> {
let timeout_propose_dur = value
.timeout_propose
.ok_or_else(|| Error::missing_timeout_propose())?;
.ok_or_else(Error::missing_timeout_propose)?;
let timeout_propose_secs: u64 = timeout_propose_dur
.seconds
.try_into()
Expand All @@ -308,7 +308,7 @@ mod v0_34 {

let timeout_commit_dur = value
.timeout_commit
.ok_or_else(|| Error::missing_timeout_commit())?;
.ok_or_else(Error::missing_timeout_commit)?;
let timeout_commit_secs: u64 = timeout_commit_dur
.seconds
.try_into()
Expand Down

0 comments on commit a64c8ea

Please sign in to comment.