Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'clippy.toml')
| -rw-r--r-- | clippy.toml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy.toml b/clippy.toml index 8032c775ab..1046cb3d56 100644 --- a/clippy.toml +++ b/clippy.toml @@ -3,3 +3,7 @@ disallowed-types = [ { path = "std::collections::HashSet", reason = "use FxHashSet" }, { path = "std::collections::hash_map::RandomState", reason = "use BuildHasherDefault<FxHasher>"} ] + +disallowed-methods = [ + { path = "std::process::Command::new", reason = "use `toolchain::command` instead as it forces the choice of a working directory" }, +] |