diff options
| author | mo8it <mo8it@proton.me> | 2024-08-25 23:54:04 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-08-25 23:54:04 +0200 |
| commit | a1f0eaab549300dbd7d2dbd85cf11aba34f57c2d (patch) | |
| tree | e5cbd4f7a4536663ae85bc88cb01a941ee3f5774 /clippy.toml | |
| parent | b1898f6d8b2c2ae45279ca4c67fa1b1a94acb936 (diff) | |
Add disallowed types and methods in Clippy
Diffstat (limited to 'clippy.toml')
| -rw-r--r-- | clippy.toml | 13 |
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", +] |
