From a1f0eaab549300dbd7d2dbd85cf11aba34f57c2d Mon Sep 17 00:00:00 2001 From: mo8it Date: Sun, 25 Aug 2024 23:54:04 +0200 Subject: Add disallowed types and methods in Clippy --- clippy.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 clippy.toml (limited to 'clippy.toml') 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", +] -- cgit v1.2.3