diff --git a/crates/cli/src/commands/analyze.rs b/crates/cli/src/commands/analyze.rs index f28cf94..9e89054 100644 --- a/crates/cli/src/commands/analyze.rs +++ b/crates/cli/src/commands/analyze.rs @@ -99,7 +99,7 @@ fn print_pretty_report(report: &Report, config: &Config, files: &[SourceFile], h 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 @@ fn print_pretty_report(report: &Report, config: &Config, files: &[SourceFile], h } else if func.complexity > config.complexity.warning_threshold { println!("{}", func_text.yellow()); } else { - println!("{}", func_text); + println!("{func_text}"); } } println!(); @@ -170,7 +170,7 @@ fn print_pretty_report(report: &Report, config: &Config, files: &[SourceFile], h 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 index 7ffcf43..a5f4608 100644 --- a/crates/cli/src/commands/clones.rs +++ b/crates/cli/src/commands/clones.rs @@ -95,7 +95,7 @@ fn print_clones_report(report: &Report, files: &[SourceFile], highlight: bool) { 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 index 276fdcc..468a2e9 100644 --- a/crates/cli/src/commands/complexity.rs +++ b/crates/cli/src/commands/complexity.rs @@ -79,7 +79,7 @@ fn print_complexity_report(report: &Report, config: &Config) { 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 @@ fn print_complexity_report(report: &Report, config: &Config) { } else if func.complexity > config.complexity.warning_threshold { println!("{}", func_text.yellow()); } else { - println!("{}", func_text); + println!("{func_text}"); } } println!();