2020-04-24 16:52:02 -05:00
|
|
|
error: indexing vector may panic. Consider using `get`
|
|
|
|
--> $DIR/match_vec_item.rs:18:11
|
2020-04-23 16:28:18 -05:00
|
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
LL | match arr[idx] {
|
|
|
|
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
2020-04-23 16:28:18 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::match-vec-item` implied by `-D warnings`
|
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
error: indexing vector may panic. Consider using `get`
|
|
|
|
--> $DIR/match_vec_item.rs:25:11
|
2020-04-23 16:28:18 -05:00
|
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
LL | match arr[range] {
|
|
|
|
| ^^^^^^^^^^ help: try this: `arr.get(range)`
|
|
|
|
|
|
|
|
error: indexing vector may panic. Consider using `get`
|
|
|
|
--> $DIR/match_vec_item.rs:38:11
|
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
|
|
|
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
|
|
|
|
|
|
|
error: indexing vector may panic. Consider using `get`
|
|
|
|
--> $DIR/match_vec_item.rs:45:11
|
|
|
|
|
|
|
|
|
LL | match arr[range] {
|
|
|
|
| ^^^^^^^^^^ help: try this: `arr.get(range)`
|
|
|
|
|
|
|
|
error: indexing vector may panic. Consider using `get`
|
|
|
|
--> $DIR/match_vec_item.rs:58:11
|
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
|
|
|
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
|
|
|
|
|
|
|
error: indexing vector may panic. Consider using `get`
|
|
|
|
--> $DIR/match_vec_item.rs:65:11
|
|
|
|
|
|
|
|
|
LL | match arr[range] {
|
|
|
|
| ^^^^^^^^^^ help: try this: `arr.get(range)`
|
|
|
|
|
|
|
|
error: indexing vector may panic. Consider using `get`
|
|
|
|
--> $DIR/match_vec_item.rs:78:11
|
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
|
|
|
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
|
|
|
|
|
|
|
error: indexing vector may panic. Consider using `get`
|
|
|
|
--> $DIR/match_vec_item.rs:85:11
|
2020-04-23 16:28:18 -05:00
|
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
LL | match arr[range] {
|
|
|
|
| ^^^^^^^^^^ help: try this: `arr.get(range)`
|
2020-04-23 16:28:18 -05:00
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
error: aborting due to 8 previous errors
|
2020-04-23 16:28:18 -05:00
|
|
|
|