2020-09-10 13:18:23 -05:00
|
|
|
error: use `.collect()` instead of `::from_iter()`
|
2020-10-01 11:04:05 -05:00
|
|
|
--> $DIR/from_iter_instead_of_collect.rs:9:5
|
2020-09-10 13:18:23 -05:00
|
|
|
|
|
2020-10-01 11:04:05 -05:00
|
|
|
LL | Vec::from_iter(iter_expr);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: ``iter_expr.collect()``
|
2020-09-10 13:18:23 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::from-iter-instead-of-collect` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: use `.collect()` instead of `::from_iter()`
|
2020-10-01 11:04:05 -05:00
|
|
|
--> $DIR/from_iter_instead_of_collect.rs:10:5
|
2020-09-10 13:18:23 -05:00
|
|
|
|
|
2020-10-01 11:04:05 -05:00
|
|
|
LL | HashMap::<usize, &i8>::from_iter(vec![5, 5, 5, 5].iter().enumerate());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: ``vec![5, 5, 5, 5].iter().enumerate().collect()``
|
2020-09-10 13:18:23 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|