Commit graph

1 commit

Author SHA1 Message Date
Weihang Lo
9e3bb8588b
clippy: warn disallowed_methods for std::env::var and friends
In 11588 we want to avoid reading from environment variables,
11727 did that well. I wonder if we could leverage tools to help
with this. Thankfully, clippy has a `disallowed_methods`[1] lint,
helping us enforce the rule.

[1]: https://rust-lang.github.io/rust-clippy/stable/index.html#disallowed_methods
2023-03-17 12:51:23 +00:00