fix: windows clippy

This commit is contained in:
andy.boot
2024-03-25 21:52:31 +00:00
parent fbd34ec4c2
commit 69c4c63357
+2 -2
View File
@@ -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))]
{