Skip to content

Commit a856706

Browse files
pitiK3Uflip1995
authored andcommitted
Update: stderr message format
1 parent 8a5d78b commit a856706

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
error: use `.collect()` instead of `::from_iter()`
2-
--> $DIR/from_iter_instead_of_collect.rs:10:5
2+
--> $DIR/from_iter_instead_of_collect.rs:10:9
33
|
4-
LL | Vec::from_iter(iter_expr);
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | Vec::from_iter(iter_expr);
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `-D clippy::from-iter-instead-of-collect` implied by `-D warnings`
88
= help: consider using `iter_expr.collect()`
99

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

1818
error: aborting due to 2 previous errors
1919

0 commit comments

Comments
 (0)