From a712e484d09ce27a622da5e61d26bbb1004f51d2 Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 18 Aug 2025 11:34:36 +0200 Subject: Update deps --- clippy.toml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'clippy.toml') 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" }, ] -- cgit v1.2.3