add manual_ok_or lint

This commit is contained in:
Tim Nielens 2020-10-27 01:47:40 +01:00
parent afbac8906e
commit 111b9023da
7 changed files with 234 additions and 0 deletions

View file

@ -1173,6 +1173,13 @@ vec![
deprecation: None,
module: "manual_non_exhaustive",
},
Lint {
name: "manual_ok_or",
group: "pedantic",
desc: "finds patterns that can be encoded more concisely with `Option::ok_or`",
deprecation: None,
module: "manual_ok_or",
},
Lint {
name: "manual_range_contains",
group: "style",