diff --git a/src/main.rs b/src/main.rs index d4fe562..ff0ddff 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))] {