Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
elmattic committed Oct 14, 2024
1 parent 7668578 commit 752baac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/rpc/methods/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2367,7 +2367,7 @@ fn eth_tx_hash_from_message_cid<DB: Blockstore>(
) -> anyhow::Result<Option<EthHash>> {
eth_tx_hash_from_message_cid_internal(
ctx.store(),
&message_cid,
message_cid,
ctx.state_manager.chain_config().eth_chain_id,
)
}
Expand Down Expand Up @@ -2645,7 +2645,5 @@ mod test {

let tx_hash = eth_tx_hash_from_message_cid_internal(&blockstore, &secp1.cid(), 0).unwrap();
assert!(tx_hash.is_none());

assert!(true);
}
}
7 changes: 2 additions & 5 deletions src/rpc/methods/eth/filter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ impl EthEventHandler {
}

async fn collect_events<DB: Blockstore + Send + Sync + 'static>(
&self,
ctx: &Ctx<DB>,
tipset: &Arc<Tipset>,
spec: &EthFilterSpec,
Expand Down Expand Up @@ -334,8 +333,7 @@ impl EthEventHandler {
ParsedFilterTipsets::Hash(block_hash) => {
let tipset = get_tipset_from_hash(ctx.chain_store(), &block_hash)?;
let tipset = Arc::new(tipset);
self.collect_events(ctx, &tipset, &spec, &mut collected_events)
.await?;
Self::collect_events(ctx, &tipset, &spec, &mut collected_events).await?;
}
ParsedFilterTipsets::Range(range) => {
let max_height = if *range.end() == -1 {
Expand Down Expand Up @@ -364,8 +362,7 @@ impl EthEventHandler {
.take(num_tipsets)
{
let tipset = Arc::new(tipset);
self.collect_events(ctx, &tipset, &spec, &mut collected_events)
.await?;
Self::collect_events(ctx, &tipset, &spec, &mut collected_events).await?;
}
}
}
Expand Down

0 comments on commit 752baac

Please sign in to comment.