mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-22 03:30:38 +00:00
baef1db40f
## Issue Addressed Closes #1621 ## Proposed Changes Use the `disallowed_method` lint to ban uses of `Iterator::{sum,product}` from `types` and `state_processing`. ## Additional Info The lint is turned off in the tree hash caching code, as it is performance sensitive and overflowy arithmetic is already allowed there.
6 lines
195 B
TOML
6 lines
195 B
TOML
# Disallow sum and product methods which are prone to overflow.
|
|
disallowed-methods = [
|
|
"core::iter::traits::iterator::Iterator::sum",
|
|
"core::iter::traits::iterator::Iterator::product",
|
|
]
|