Skip to content

Commit

Permalink
More fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-szabo committed Aug 24, 2020
1 parent 2edb72b commit cd3b199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tendermint/src/amino_types/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ impl TryFrom<PubKeyResponse> for PublicKey {
fn try_from(response: PubKeyResponse) -> Result<PublicKey, Error> {
match &response
.pub_key
.ok_or_else(||format_err!(error::Kind::InvalidKey, "empty pubkey"))?
.ok_or_else(|| format_err!(error::Kind::InvalidKey, "empty pubkey"))?
.sum
.ok_or_else(||format_err!(error::Kind::InvalidKey, "empty sum"))?
.ok_or_else(|| format_err!(error::Kind::InvalidKey, "empty sum"))?
{
Sum::Ed25519(b) => Ed25519::from_bytes(b),
}
Expand Down

0 comments on commit cd3b199

Please sign in to comment.