瀏覽代碼

Avoid dead code warning on windows

Sam Clements 3 年之前
父節點
當前提交
8bef8a6a32
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;