GitHub Actions / clippy
failed
Nov 29, 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.84.0-nightly (662180b34 2024-10-20)
- cargo 1.84.0-nightly (cf53cc54b 2024-10-18)
- clippy 0.1.84 (662180b34d 2024-10-20)
Annotations
Check failure on line 242 in pallets/subnet_emission/src/decryption.rs
github-actions / clippy
usage of `Iterator::fold` on a type that implements `Try`
error: usage of `Iterator::fold` on a type that implements `Try`
--> pallets/subnet_emission/src/decryption.rs:211:29
|
211 | weights.into_iter().fold(Ok(0u64), |acc_emission, (block, block_weights)| {
| _____________________________^
212 | | let acc_emission = acc_emission?;
213 | |
214 | | // Update weights storage
... |
241 | | }
242 | | })
| |__________^ help: use `try_fold` instead: `try_fold(0u64, |acc_emission, (block, block_weights)| ...)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
= note: `-D clippy::manual-try-fold` implied by `-D clippy::all`
= help: to override `-D clippy::all` add `#[allow(clippy::manual_try_fold)]`
Loading