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