소스 검색

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;