You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: master/lints.json
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -762,6 +762,17 @@
762
762
"id": "unnecessary_filter_map",
763
763
"level": "Warn"
764
764
},
765
+
{
766
+
"docs": {
767
+
"What it does": "Checks for usage of `option_env!(...).unwrap()` and\nsuggests usage of the `env!` macro.",
768
+
"Why is this bad": "Unwrapping the result of `option_env!` will panic\nat run-time if the environment variable doesn't exist, whereas `env!`\ncatches it at compile-time.",
0 commit comments