summaryrefslogtreecommitdiff
path: root/clippy.toml
diff options
context:
space:
mode:
Diffstat (limited to 'clippy.toml')
-rw-r--r--clippy.toml13
1 files changed, 13 insertions, 0 deletions
diff --git a/clippy.toml b/clippy.toml
new file mode 100644
index 0000000..81e372a
--- /dev/null
+++ b/clippy.toml
@@ -0,0 +1,13 @@
+disallowed-types = [
+ # Inefficient. Use `.queue(…)` instead.
+ "crossterm::style::Stylize",
+ "crossterm::style::styled_content::StyledContent",
+]
+
+disallowed-methods = [
+ # We use `ahash` instead of the default hasher.
+ "std::collections::HashSet::new",
+ "std::collections::HashSet::with_capacity",
+ # Inefficient. Use `.queue(…)` instead.
+ "crossterm::style::style",
+]