]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: avoid using `collect()` when not needed |
2 | --> $DIR/ice-5872.rs:4:39 | |
3 | | | |
4 | LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<_>>().is_empty(); | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `next().is_none()` | |
6 | | | |
7 | = note: `-D clippy::needless-collect` implied by `-D warnings` | |
8 | ||
9 | error: aborting due to previous error | |
10 |