summaryrefslogtreecommitdiffstats
path: root/.cargo/config.toml
diff options
context:
space:
mode:
Diffstat (limited to '.cargo/config.toml')
-rw-r--r--.cargo/config.toml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 00000000..3e57a8d6
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,12 @@
+[target.'cfg(all())']
+# Note: if the RUSTFLAGS environment variable is set, this will be
+# ignored.
+rustflags = [
+ "-Dwarnings",
+ "-Aunused-parens",
+ "-Aclippy::collapsible-else-if",
+ "-Aclippy::needless-question-mark",
+ "-Aclippy::redundant-clone",
+ "-Aclippy::try-err",
+ "-Aclippy::unnecessary-lazy-evaluations",
+]