summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cargo/config.toml12
-rwxr-xr-xtools/lint.js13
2 files changed, 13 insertions, 12 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index bb2ccd68b..cac99a377 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -12,3 +12,15 @@ rustflags = [
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
+
+[target.'cfg(all())']
+rustflags = [
+ "-D",
+ "clippy::all",
+ "-D",
+ "clippy::await_holding_refcell_ref",
+ "-D",
+ "clippy::missing_safety_doc",
+ "-D",
+ "clippy::undocumented_unsafe_blocks",
+]
diff --git a/tools/lint.js b/tools/lint.js
index ee438ed8b..62f73119f 100755
--- a/tools/lint.js
+++ b/tools/lint.js
@@ -109,18 +109,7 @@ async function clippy() {
}
const { success } = await Deno.spawn("cargo", {
- args: [
- ...cmd,
- "--",
- "-D",
- "clippy::all",
- "-D",
- "clippy::await_holding_refcell_ref",
- "-D",
- "clippy::missing_safety_doc",
- "-D",
- "clippy::undocumented_unsafe_blocks",
- ],
+ args: cmd,
stdout: "inherit",
stderr: "inherit",
});