feat(ethereum): <- add PTokenRouter Metadata event parser to that #45
GitHub Actions / clippy
failed
Feb 19, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check failure on line 79 in common/ethereum/src/eth_contracts/ptokens_router.rs
github-actions / clippy
called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead
error: called `filter(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(..)` instead
--> common/ethereum/src/eth_contracts/ptokens_router.rs:75:15
|
75 | match receipt
| _______________^
76 | | .logs
77 | | .iter()
78 | | .filter(|log| log.contains_topic(&PTOKENS_ROUTER_METADATA_EVENT_TOPIC))
79 | | .next()
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#filter_next
= note: `-D clippy::filter-next` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::filter_next)]`
help: try
|
75 ~ match receipt
76 + .logs
77 + .iter().find(|log| log.contains_topic(&PTOKENS_ROUTER_METADATA_EVENT_TOPIC))
|
Loading