From 8bef8a6a32f616de0893a14d3b5075824bf093ec Mon Sep 17 00:00:00 2001 From: Sam Clements Date: Thu, 29 Jul 2021 12:29:28 +0100 Subject: [PATCH] Avoid dead code warning on windows --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index dcc50ba..f441d9c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -322,7 +322,7 @@ impl Log for SimpleLogger { fn flush(&self) {} } -#[cfg(windows)] +#[cfg(all(windows, feature = "colored"))] fn set_up_color_terminal() { use atty::Stream;