lighthouse/consensus
Michael Sproul baef1db40f Lint for sum and product in consensus code (#2226)
## 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.
2021-03-01 00:57:13 +00:00
..
cached_tree_hash Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
fork_choice Advance state to next slot after importing block (#2174) 2021-02-15 07:17:52 +00:00
int_to_bytes Update to tokio 1.1 (#2172) 2021-02-10 23:29:49 +00:00
merkle_proof Implement matches! macro (#1777) 2020-10-15 21:42:43 +00:00
proto_array Advance state to next slot after importing block (#2174) 2021-02-15 07:17:52 +00:00
safe_arith Remove saturating arith from state_processing (#1644) 2020-09-25 05:18:21 +00:00
serde_utils Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
ssz Fix clippy errors on tests (#2160) 2021-01-28 23:31:06 +00:00
ssz_derive Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
ssz_types Fix clippy errors on tests (#2160) 2021-01-28 23:31:06 +00:00
state_processing Lint for sum and product in consensus code (#2226) 2021-03-01 00:57:13 +00:00
swap_or_not_shuffle Update for clippy 1.50 (#2193) 2021-02-15 00:09:12 +00:00
tree_hash fix a couple typos in comments in merkle_hasher (#2171) 2021-02-03 04:52:22 +00:00
tree_hash_derive Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
types Lint for sum and product in consensus code (#2226) 2021-03-01 00:57:13 +00:00