We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1898f6 commit a1f0eaaCopy full SHA for a1f0eaa
Cargo.toml
@@ -75,6 +75,8 @@ unstable_features = "forbid"
75
76
[workspace.lints.clippy]
77
empty_loop = "forbid"
78
+disallowed-types = "deny"
79
+disallowed-methods = "deny"
80
infinite_loop = "deny"
81
mem_forget = "deny"
82
dbg_macro = "warn"
clippy.toml
@@ -0,0 +1,13 @@
1
+disallowed-types = [
2
+ # Inefficient. Use `.queue(…)` instead.
3
+ "crossterm::style::Stylize",
4
+ "crossterm::style::styled_content::StyledContent",
5
+]
6
+
7
+disallowed-methods = [
8
+ # We use `ahash` instead of the default hasher.
9
+ "std::collections::HashSet::new",
10
+ "std::collections::HashSet::with_capacity",
11
12
+ "crossterm::style::style",
13
0 commit comments