Sfoglia il codice sorgente

Avoid dead code warning on windows

Sam Clements 3 anni fa
parent
commit
8bef8a6a32
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/lib.rs

+ 1 - 1
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;