Added lint match_vec_item

This commit is contained in:
CrazyRoka
2020-04-24 00:28:18 +03:00
committed by CrazyRoka
parent 1d4dd3d428
commit 96e2bc80f5
6 changed files with 260 additions and 0 deletions

View File

@@ -1172,6 +1172,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
deprecation: None,
module: "matches",
},
Lint {
name: "match_vec_item",
group: "style",
desc: "match vector by indexing can panic",
deprecation: None,
module: "match_vec_item",
},
Lint {
name: "match_wild_err_arm",
group: "style",