Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev committed Jan 8, 2024
1 parent 782fa4c commit 8945866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lazy_static! {
abigen!(IEntrypointV06, "./src/indexer/v06/abi.json");

pub fn matches_entrypoint_event<T: EthEvent>(log: &Log) -> bool {
log.address == *ENTRYPOINT_V06 && log.topics.get(0) == Some(&T::signature())
log.address == *ENTRYPOINT_V06 && log.topics.first() == Some(&T::signature())
}

pub fn parse_event<T: EthEvent>(log: &Log) -> Result<T, Error> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl<'a, C: PubsubClient> IndexerV06<'a, C> {
Ok(model) => Some(model),
Err(err) => {
let logs_start_index =
logs.get(0).and_then(|l| l.log_index).map(|i| i.as_u64());
logs.first().and_then(|l| l.log_index).map(|i| i.as_u64());
let logs_count = logs.len();
tracing::error!(
tx_hash = ?tx_hash,
Expand Down

0 comments on commit 8945866

Please sign in to comment.