From 69c4c63357660bbb238e0e8b9dcad0abdecb7690 Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Mon, 25 Mar 2024 21:52:31 +0000 Subject: [PATCH] fix: windows clippy --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d4fe562c..ff0ddfff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,13 +63,13 @@ fn should_init_color(no_color: bool, force_color: bool) -> bool { { // Required for windows 10 // Fails to resolve for windows 8 so disable color - return match ansi_term::enable_ansi_support() { + match ansi_term::enable_ansi_support() { Ok(_) => true, Err(_) => { eprintln!("This version of Windows does not support ANSI colors"); false } - }; + } } #[cfg(not(windows))] {