summaryrefslogtreecommitdiff
path: root/clippy.toml
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-08-18 11:34:36 +0200
committermo8it <mo8it@proton.me>2025-08-18 12:01:21 +0200
commita712e484d09ce27a622da5e61d26bbb1004f51d2 (patch)
treefb9233a3363c68da6f866dffdff635f778793345 /clippy.toml
parentf24861957a0c669060473a1fe7c6180eb43df9e2 (diff)
Update deps
Diffstat (limited to 'clippy.toml')
-rw-r--r--clippy.toml16
1 files changed, 6 insertions, 10 deletions
diff --git a/clippy.toml b/clippy.toml
index afc9253..89b0a88 100644
--- a/clippy.toml
+++ b/clippy.toml
@@ -1,15 +1,11 @@
disallowed-types = [
- # Inefficient. Use `.queue(…)` instead.
- "crossterm::style::Stylize",
- "crossterm::style::styled_content::StyledContent",
+ { path = "crossterm::style::Stylize", reason = "inefficient, use `.queue(…)` instead" },
+ { path = "crossterm::style::styled_content::StyledContent", reason = "inefficient, use `.queue(…)` instead" },
]
disallowed-methods = [
- # Inefficient. Use `.queue(…)` instead.
- "crossterm::style::style",
- # Use `thread::Builder::spawn` instead and handle the error.
- "std::thread::spawn",
- "std::thread::Scope::spawn",
- # Return `ExitCode` instead.
- "std::process::exit",
+ { path = "crossterm::style::style", reason = "inefficient, use `.queue(…)` instead" },
+ { path = "std::thread::spawn", replacement = "std::thread::Builder::spawn", reason = "handle the error" },
+ { path = "std::thread::Scope::spawn", replacement = "std::thread::Builder::spawn", reason = "handle the error" },
+ { path = "std::process::exit", replacement = "std::process::ExitCode" },
]