summaryrefslogtreecommitdiff
path: root/.cargo
diff options
context:
space:
mode:
authorMathias Lafeldt <mathias.lafeldt@gmail.com>2022-08-11 15:43:27 +0200
committerGitHub <noreply@github.com>2022-08-11 19:13:27 +0530
commit883269f1f183428f60c54223135d8dd25977b3cd (patch)
tree775a352e68fb85292861a92bd267b9b41fc33d74 /.cargo
parent25a1cc1b28ee2f37deb6305c0feb66d4eec50804 (diff)
chore: move lint rules to cargo config for better editor integration (#15453)
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/config.toml12
1 files changed, 12 insertions, 0 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",
+]