summaryrefslogtreecommitdiffstats
path: root/.cargo
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 16:40:03 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 16:40:03 +0200
commitf137d71e8fb926e784680d56d1cfa6817c3710a1 (patch)
treedc12a3a95e7433fb965ddc86ad52593f08db00df /.cargo
parentb8ddd158da1b4e73e67fd090f8d36ed07f191874 (diff)
downloadiced-f137d71e8fb926e784680d56d1cfa6817c3710a1.tar.gz
iced-f137d71e8fb926e784680d56d1cfa6817c3710a1.tar.bz2
iced-f137d71e8fb926e784680d56d1cfa6817c3710a1.zip
Centralize `clippy` lints in `.cargo/config.toml`
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/config.toml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 9e265aa9..e3e32033 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -2,6 +2,7 @@
lint = """
clippy --workspace --no-deps -- \
-D warnings \
+ -A clippy::type_complexity \
-D clippy::semicolon_if_nothing_returned \
-D clippy::trivially-copy-pass-by-ref \
-D clippy::default_trait_access \
@@ -9,9 +10,15 @@ clippy --workspace --no-deps -- \
-D clippy::redundant-closure-for-method-calls \
-D clippy::filter_map_next \
-D clippy::manual_let_else \
- -D clippy::unused_async
+ -D clippy::unused_async \
+ -D clippy::from_over_into \
+ -D clippy::needless_borrow \
+ -D clippy::new_without_default \
+ -D clippy::useless_conversion
"""
+#![allow(clippy::inherent_to_string, clippy::type_complexity)]
+
nitpick = """
clippy --workspace --no-deps -- \
-D warnings \