File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ impl<T: Write + Send + 'static> WinConsole<T> {
108108 // terminal! Admittedly, this is fragile, since stderr could be
109109 // redirected to a different console. This is good enough for
110110 // rustc though. See #13400.
111- let out = GetStdHandle ( -11i32 as DWORD ) ;
111+ let out = GetStdHandle ( -11 as DWORD ) ;
112112 SetConsoleTextAttribute ( out, accum) ;
113113 }
114114 }
@@ -120,7 +120,7 @@ impl<T: Write + Send + 'static> WinConsole<T> {
120120 let bg;
121121 unsafe {
122122 let mut buffer_info = :: std:: mem:: uninitialized ( ) ;
123- if GetConsoleScreenBufferInfo ( GetStdHandle ( -11i32 as DWORD ) , & mut buffer_info) != 0 {
123+ if GetConsoleScreenBufferInfo ( GetStdHandle ( -11 as DWORD ) , & mut buffer_info) != 0 {
124124 fg = bits_to_color ( buffer_info. wAttributes ) ;
125125 bg = bits_to_color ( buffer_info. wAttributes >> 4 ) ;
126126 } else {
You can’t perform that action at this time.
0 commit comments