Update: stderr message format

This commit is contained in:
Piti the little Light 2020-10-01 12:36:17 +02:00 committed by flip1995
parent 8a5d78b71a
commit a85670652a
No known key found for this signature in database
GPG key ID: AFC0354489087877

View file

@ -1,5 +1,5 @@
error: use `.collect()` instead of `::from_iter()` 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);
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^
@ -8,12 +8,12 @@ LL | Vec::from_iter(iter_expr);
= help: consider using `iter_expr.collect()` = help: consider using `iter_expr.collect()`
error: use `.collect()` instead of `::from_iter()` 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 error: aborting due to 2 previous errors