address comments
This commit is contained in:
parent
fbb3f759e2
commit
cb5d7e344a
5 changed files with 11 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
error: you seem to be using `Iterator::fold` on a type that implements `Try`
|
||||
error: usage of `Iterator::fold` on a type that implements `Try`
|
||||
--> $DIR/manual_try_fold.rs:61:10
|
||||
|
|
||||
LL | .fold(Some(0i32), |sum, i| sum?.checked_add(*i))
|
||||
|
|
@ -6,19 +6,19 @@ LL | .fold(Some(0i32), |sum, i| sum?.checked_add(*i))
|
|||
|
|
||||
= note: `-D clippy::manual-try-fold` implied by `-D warnings`
|
||||
|
||||
error: you seem to be using `Iterator::fold` on a type that implements `Try`
|
||||
error: usage of `Iterator::fold` on a type that implements `Try`
|
||||
--> $DIR/manual_try_fold.rs:65:10
|
||||
|
|
||||
LL | .fold(NotOption(0i32, 0i32), |sum, i| NotOption(0i32, 0i32));
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(..., |sum, i| ...)`
|
||||
|
||||
error: you seem to be using `Iterator::fold` on a type that implements `Try`
|
||||
error: usage of `Iterator::fold` on a type that implements `Try`
|
||||
--> $DIR/manual_try_fold.rs:68:10
|
||||
|
|
||||
LL | .fold(NotOptionButWorse(0i32), |sum, i| NotOptionButWorse(0i32));
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(0i32, |sum, i| ...)`
|
||||
|
||||
error: you seem to be using `Iterator::fold` on a type that implements `Try`
|
||||
error: usage of `Iterator::fold` on a type that implements `Try`
|
||||
--> $DIR/manual_try_fold.rs:98:10
|
||||
|
|
||||
LL | .fold(Some(0i32), |sum, i| sum?.checked_add(*i))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue