Skip to content

Implement BlockCache Trait #152

Implement BlockCache Trait

Implement BlockCache Trait #152

GitHub Actions / Clippy (MSRV) failed Sep 17, 2024 in 0s

Clippy (MSRV)

4 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 4
Warning 0
Note 0
Help 0

Versions

  • rustc 1.77.0 (aedd173a2 2024-03-17)
  • cargo 1.77.0 (3fe68eabf 2024-02-29)
  • clippy 0.1.77 (aedd173 2024-03-17)

Annotations

Check failure on line 385 in components/zcash_protocol/src/value.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (MSRV)

usage of `Iterator::fold` on a type that implements `Try`

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

Check failure on line 379 in components/zcash_protocol/src/value.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (MSRV)

usage of `Iterator::fold` on a type that implements `Try`

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

Check failure on line 202 in components/zcash_protocol/src/value.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (MSRV)

usage of `Iterator::fold` on a type that implements `Try`

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

Check failure on line 196 in components/zcash_protocol/src/value.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (MSRV)

usage of `Iterator::fold` on a type that implements `Try`

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)]`