1
Fork 0

Add option-env-unwrap lint

This commit is contained in:
Krishna Sai Veera Reddy 2020-02-08 16:44:35 -08:00
parent 4ad6fb3fb0
commit be1bc571c3
7 changed files with 105 additions and 2 deletions

View file

@ -6,7 +6,7 @@ pub use lint::Lint;
pub use lint::LINT_LEVELS;
// begin lint list, do not remove this comment, its used in `update_lints`
pub const ALL_LINTS: [Lint; 354] = [
pub const ALL_LINTS: [Lint; 355] = [
Lint {
name: "absurd_extreme_comparisons",
group: "correctness",
@ -1498,6 +1498,13 @@ pub const ALL_LINTS: [Lint; 354] = [
deprecation: None,
module: "methods",
},
Lint {
name: "option_env_unwrap",
group: "correctness",
desc: "using `option_env!(...).unwrap()` to get environment variable",
deprecation: None,
module: "option_env_unwrap",
},
Lint {
name: "option_expect_used",
group: "restriction",