Skip to content

add ref

add ref #151

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy succeeded Oct 13, 2023 in 1s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.72.1 (d5c2e9c34 2023-09-13)
  • cargo 1.72.1 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (d5c2e9c 2023-09-13)

Annotations

Check warning on line 134 in src/config/network.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: usage of `Iterator::fold` on a type that implements `Try`
   --> src/config/network.rs:124:18
    |
124 |                   .fold(
    |  __________________^
125 | |                     Some(*h),
126 | |                     |current_exchange, (next_exchange, next_amount)| {
127 | |                         if next_amount > current_amount_out {
...   |
133 | |                     },
134 | |                 )
    | |_________________^ help: use `try_fold` instead: `try_fold(*h, |current_exchange, (next_exchange, next_amount)| ...)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
    = note: `#[warn(clippy::manual_try_fold)]` on by default