Implement BlockCache Trait #156
Triggered via pull request
September 19, 2024 21:25
Status
Failure
Total duration
2m 34s
Artifacts
–
audits.yml
on: pull_request
Vet Rust dependencies
2m 26s
Check licenses
40s
Annotations
5 errors
usage of `Iterator::fold` on a type that implements `Try`:
components/zcash_protocol/src/value.rs#L385
error: usage of `Iterator::fold` on a type that implements `Try`
--> components/zcash_protocol/src/value.rs:385:14
|
385 | iter.fold(Some(Zatoshis::ZERO), |acc, a| acc? + *a)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(Zatoshis::ZERO, |acc, a| ...)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
|
usage of `Iterator::fold` on a type that implements `Try`:
components/zcash_protocol/src/value.rs#L379
error: usage of `Iterator::fold` on a type that implements `Try`
--> components/zcash_protocol/src/value.rs:379:14
|
379 | iter.fold(Some(Zatoshis::ZERO), |acc, a| acc? + a)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(Zatoshis::ZERO, |acc, a| ...)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
|
usage of `Iterator::fold` on a type that implements `Try`:
components/zcash_protocol/src/value.rs#L202
error: usage of `Iterator::fold` on a type that implements `Try`
--> components/zcash_protocol/src/value.rs:202:14
|
202 | iter.fold(Some(ZatBalance::zero()), |acc, a| acc? + *a)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(ZatBalance::zero(), |acc, a| ...)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
|
usage of `Iterator::fold` on a type that implements `Try`:
components/zcash_protocol/src/value.rs#L196
error: usage of `Iterator::fold` on a type that implements `Try`
--> components/zcash_protocol/src/value.rs:196:14
|
196 | iter.fold(Some(ZatBalance::zero()), |acc, a| acc? + a)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(ZatBalance::zero(), |acc, a| ...)`
|
= 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 warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_try_fold)]`
|
Vet Rust dependencies
Process completed with exit code 255.
|