Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Jan 11, 2024
1 parent 6f44e2c commit 4273860
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dan_layer/state_store_sqlite/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1185,8 +1185,8 @@ impl<TAddr: NodeAddressable + Serialize + DeserializeOwned> StateStoreReadTransa
continue;
}
let evidence = deserialize_json::<Evidence>(&update.evidence)?;
let evidence = evidence.shards_iter().cloned().collect::<HashSet<_>>();
processed_substates.insert(deserialize_hex_try_from(&tx_id)?, evidence);
let evidence = evidence.shards_iter().copied().collect::<HashSet<_>>();
processed_substates.insert(deserialize_hex_try_from(tx_id)?, evidence);
}

ready_txs
Expand All @@ -1200,11 +1200,11 @@ impl<TAddr: NodeAddressable + Serialize + DeserializeOwned> StateStoreReadTransa
.transaction()
.evidence
.shards_iter()
.cloned()
.copied()
.collect::<HashSet<_>>();
if tx_substates.is_disjoint(&used_substates) &&
processed_substates.iter().all(|(tx_id, substates)| {
tx_id == rec.transaction_id() || tx_substates.is_disjoint(&substates)
tx_id == rec.transaction_id() || tx_substates.is_disjoint(substates)
})
{
used_substates.extend(tx_substates);
Expand Down

0 comments on commit 4273860

Please sign in to comment.