cargo/clippy.toml
Ed Page 9df5e79dfb chore: Migrate print-ban from test to clippy
This should be more resilient to false positives like in #12245 where a
string contains `println`.
2023-06-09 08:11:49 -05:00

9 lines
498 B
TOML

allow-print-in-tests = true
allow-dbg-in-tests = true
disallowed-methods = [
{ path = "std::env::var", reason = "Use `Config::get_env` instead. See rust-lang/cargo#11588" },
{ path = "std::env::var_os", reason = "Use `Config::get_env_os` instead. See rust-lang/cargo#11588" },
{ path = "std::env::vars", reason = "Not recommended to use in Cargo. See rust-lang/cargo#11588" },
{ path = "std::env::vars_os", reason = "Not recommended to use in Cargo. See rust-lang/cargo#11588" },
]