Add option-env-unwrap
lint
This commit is contained in:
parent
4ad6fb3fb0
commit
be1bc571c3
7 changed files with 105 additions and 2 deletions
|
@ -6,7 +6,7 @@ pub use lint::Lint;
|
|||
pub use lint::LINT_LEVELS;
|
||||
|
||||
// begin lint list, do not remove this comment, it’s 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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue