Skip to content

Commit

Permalink
bless clippy
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Jul 15, 2024
1 parent 9ba03e6 commit 95f87ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mm2src/coins/tendermint/tendermint_coin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ impl TendermintCoin {
memo: String,
) -> Result<TransactionData, ErrorReport> {
if let Some(priv_key) = maybe_pk {
let tx_raw = self.any_to_signed_raw_tx(&priv_key, &account_info, message, fee, timeout_height, memo)?;
let tx_raw = self.any_to_signed_raw_tx(&priv_key, account_info, message, fee, timeout_height, memo)?;
let tx_bytes = tx_raw.to_bytes()?;
let hash = sha256(&tx_bytes);

Expand All @@ -1182,9 +1182,9 @@ impl TendermintCoin {
))
} else {
let SerializedUnsignedTx { tx_json, .. } = if self.is_keplr_from_ledger {
self.any_to_legacy_amino_json(&account_info, message, fee, timeout_height, memo)
self.any_to_legacy_amino_json(account_info, message, fee, timeout_height, memo)
} else {
self.any_to_serialized_sign_doc(&account_info, message, fee, timeout_height, memo)
self.any_to_serialized_sign_doc(account_info, message, fee, timeout_height, memo)
}?;

Ok(TransactionData::Unsigned(tx_json))
Expand Down Expand Up @@ -3277,10 +3277,10 @@ fn parse_expected_sequence_number(e: &str) -> MmResult<u64, TendermintCoinRpcErr
}
}

return MmError::err(TendermintCoinRpcError::InternalError(format!(
MmError::err(TendermintCoinRpcError::InternalError(format!(
"Could not parse the expected sequence number from this error message: '{}'",
e
)));
)))
}

#[cfg(test)]
Expand Down

0 comments on commit 95f87ef

Please sign in to comment.