Update according to the latest clippy

This commit is contained in:
Luke Parker
2022-09-04 21:23:38 -04:00
parent 73566e756d
commit 31b64b3082
7 changed files with 14 additions and 14 deletions

View File

@@ -160,14 +160,14 @@ impl Rpc {
.rpc_call(
"get_transactions",
Some(json!({
"txs_hashes": hashes.iter().map(|hash| hex::encode(&hash)).collect::<Vec<_>>()
"txs_hashes": hashes.iter().map(hex::encode).collect::<Vec<_>>()
})),
)
.await?;
if !txs.missed_tx.is_empty() {
Err(RpcError::TransactionsNotFound(
txs.missed_tx.iter().map(|hash| hex::decode(&hash).unwrap().try_into().unwrap()).collect(),
txs.missed_tx.iter().map(|hash| hex::decode(hash).unwrap().try_into().unwrap()).collect(),
))?;
}