Skip to content

Commit

Permalink
Update: stderr message format
Browse files Browse the repository at this point in the history
  • Loading branch information
pitiK3U authored and flip1995 committed Nov 3, 2020
1 parent 8a5d78b commit a856706
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/ui/from_iter_instead_of_collect.stderr
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
error: use `.collect()` instead of `::from_iter()`
--> $DIR/from_iter_instead_of_collect.rs:10:5
--> $DIR/from_iter_instead_of_collect.rs:10:9
|
LL | Vec::from_iter(iter_expr);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
LL | Vec::from_iter(iter_expr);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::from-iter-instead-of-collect` implied by `-D warnings`
= help: consider using `iter_expr.collect()`

error: use `.collect()` instead of `::from_iter()`
--> $DIR/from_iter_instead_of_collect.rs:11:5
--> $DIR/from_iter_instead_of_collect.rs:11:9
|
LL | HashMap::<usize, &i8>::from_iter(vec![5,5,5,5].iter().enumerate());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL | HashMap::<usize, &i8>::from_iter(vec![5, 5, 5, 5].iter().enumerate());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using `vec![5,5,5,5].iter().enumerate().collect()`
= help: consider using `vec![5, 5, 5, 5].iter().enumerate().collect()`

error: aborting due to 2 previous errors

0 comments on commit a856706

Please sign in to comment.