From 0c789039e9fb681303d46fc8205bdcb6c27add7f Mon Sep 17 00:00:00 2001 From: Owais Jamil Date: Thu, 13 Nov 2025 22:10:24 +0000 Subject: [PATCH] make clippy happy --- crates/cli/src/commands/analyze.rs | 6 +++--- crates/cli/src/commands/clones.rs | 2 +- crates/cli/src/commands/complexity.rs | 4 ++-- 3 file(s) changed, 6 insertion(s)(+), 6 deletion(s)(-) diff --git a/crates/cli/src/commands/analyze.rs b/crates/cli/src/commands/analyze.rs --- a/crates/cli/src/commands/analyze.rs +++ b/crates/cli/src/commands/analyze.rs @@ -99,7 +99,7 @@ println!("{} {}", "FILE:".blue().bold(), file.path.display().bold()); let complexity_value = file.cyclomatic.file_complexity; - let complexity_text = format!("Cyclomatic Complexity: {}", complexity_value); + let complexity_text = format!("Cyclomatic Complexity: {complexity_value}"); if complexity_value > config.complexity.error_threshold { println!(" {}", complexity_text.red().bold()); @@ -127,7 +127,7 @@ } else if func.complexity > config.complexity.warning_threshold { println!("{}", func_text.yellow()); } else { - println!("{}", func_text); + println!("{func_text}"); } } println!(); @@ -170,7 +170,7 @@ println!("{}", " ┌─────".dimmed()); for line in highlighted.lines() { - println!(" │ {}", line); + println!(" │ {line}"); } println!("{}", " └─────".dimmed()); } diff --git a/crates/cli/src/commands/clones.rs b/crates/cli/src/commands/clones.rs --- a/crates/cli/src/commands/clones.rs +++ b/crates/cli/src/commands/clones.rs @@ -95,7 +95,7 @@ println!("{}", " ┌─────".dimmed()); for line in highlighted.lines() { - println!(" │ {}", line); + println!(" │ {line}"); } println!("{}", " └─────".dimmed()); } diff --git a/crates/cli/src/commands/complexity.rs b/crates/cli/src/commands/complexity.rs --- a/crates/cli/src/commands/complexity.rs +++ b/crates/cli/src/commands/complexity.rs @@ -79,7 +79,7 @@ println!("{} {}", "FILE:".blue().bold(), file.path.display().bold()); let complexity_value = file.cyclomatic.file_complexity; - let complexity_text = format!("Cyclomatic Complexity: {}", complexity_value); + let complexity_text = format!("Cyclomatic Complexity: {complexity_value}"); if complexity_value > config.complexity.error_threshold { println!(" {}", complexity_text.red().bold()); @@ -106,7 +106,7 @@ } else if func.complexity > config.complexity.warning_threshold { println!("{}", func_text.yellow()); } else { - println!("{}", func_text); + println!("{func_text}"); } } println!(); -- tangled.sh