We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835b7f0 commit 0e40b53Copy full SHA for 0e40b53
tests/ui/collect.stderr
@@ -1,13 +1,13 @@
1
error: you are creating a collection of `Result`s
2
--> $DIR/collect.rs:6:21
3
|
4
-6 | let option_vec: Vec<_> = b.into_iter()
+6 | let option_vec: Vec<_> = b.iter()
5
| ^^^^^^
6
7
- = note: `-D possible-shortcircuiting-collect` implied by `-D warnings`
+ = note: `-D clippy::possible-shortcircuiting-collect` implied by `-D warnings`
8
help: if you are only interested in the case where all values are `Ok`, try
9
10
-6 | let option_vec: Result<std::vec::Vec<_>, _> = b.into_iter()
+6 | let option_vec: Result<std::vec::Vec<_>, _> = b.iter()
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13
error: you are creating a collection of `Option`s
0 commit comments