cargo fmt

This commit is contained in:
xxanqw committed 2025-11-30 00:39:08 +02:00
1 parent d0350658ac
commit 511553a4a2
2 files changed
+11 -5

No files matched your search

+3 -3
View File
@@ -506,9 +506,9 @@ pub fn detect_color_mode() -> ColorMode {
} }
// Early checks // Early checks
if std::env::var("COLORTERM").is_ok_and(|colorterm| { if std::env::var("COLORTERM")
colorterm.contains("truecolor") || colorterm.contains("24bit") .is_ok_and(|colorterm| colorterm.contains("truecolor") || colorterm.contains("24bit"))
}) { {
return ColorMode::Truecolor; return ColorMode::Truecolor;
} }
+8 -2
View File
@@ -520,8 +520,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// If color debug is requested, print information and exit // If color debug is requested, print information and exit
if args.color_debug { if args.color_debug {
eprintln!("Color Debug: mode={:?}, ansi_enabled={}, rainbow={}, saturation={}, brightness={}", eprintln!(
color_config.mode, color_config.ansi_enabled, color_config.rainbow, color_config.saturation, color_config.brightness); "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 { if let Some(single) = &color_config.single_color {
eprintln!("Single color: {:?}", single); eprintln!("Single color: {:?}", single);
} }