From 511553a4a2edc051f8a9f0826432147aac4b0032 Mon Sep 17 00:00:00 2001 From: xxanqw Date: Sun, 30 Nov 2025 00:39:08 +0200 Subject: cargo fmt --- src/color.rs | 6 +++--- src/main.rs | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/color.rs b/src/color.rs index 809c66f..548c222 100644 --- a/src/color.rs +++ b/src/color.rs @@ -506,9 +506,9 @@ pub fn detect_color_mode() -> ColorMode { } // Early checks - if std::env::var("COLORTERM").is_ok_and(|colorterm| { - colorterm.contains("truecolor") || colorterm.contains("24bit") - }) { + if std::env::var("COLORTERM") + .is_ok_and(|colorterm| colorterm.contains("truecolor") || colorterm.contains("24bit")) + { return ColorMode::Truecolor; } diff --git a/src/main.rs b/src/main.rs index 23683b4..8a50a54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -520,8 +520,14 @@ fn main() -> Result<(), Box> { // If color debug is requested, print information and exit if args.color_debug { - eprintln!("Color Debug: mode={:?}, ansi_enabled={}, rainbow={}, saturation={}, brightness={}", - color_config.mode, color_config.ansi_enabled, color_config.rainbow, color_config.saturation, color_config.brightness); + eprintln!( + "Color Debug: mode={:?}, ansi_enabled={}, rainbow={}, saturation={}, brightness={}", + color_config.mode, + color_config.ansi_enabled, + color_config.rainbow, + color_config.saturation, + color_config.brightness + ); if let Some(single) = &color_config.single_color { eprintln!("Single color: {:?}", single); } -- cgit v1.3-2-g0d8e