Lint previous commit

This commit is contained in:
Luke Parker
2022-08-22 13:35:49 -04:00
parent 5c106cecf6
commit 5b2940e161
6 changed files with 40 additions and 22 deletions

View File

@@ -165,7 +165,7 @@ impl Rpc {
)
.await?;
if txs.missed_tx.len() != 0 {
if !txs.missed_tx.is_empty() {
Err(RpcError::TransactionsNotFound(
txs.missed_tx.iter().map(|hash| hex::decode(&hash).unwrap().try_into().unwrap()).collect(),
))?;