File tree 1 file changed +2
-2
lines changed
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> {
108
108
// terminal! Admittedly, this is fragile, since stderr could be
109
109
// redirected to a different console. This is good enough for
110
110
// rustc though. See #13400.
111
- let out = GetStdHandle ( -11i32 as DWORD ) ;
111
+ let out = GetStdHandle ( -11 as DWORD ) ;
112
112
SetConsoleTextAttribute ( out, accum) ;
113
113
}
114
114
}
@@ -120,7 +120,7 @@ impl<T: Write + Send + 'static> WinConsole<T> {
120
120
let bg;
121
121
unsafe {
122
122
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 {
124
124
fg = bits_to_color ( buffer_info. wAttributes ) ;
125
125
bg = bits_to_color ( buffer_info. wAttributes >> 4 ) ;
126
126
} else {
You can’t perform that action at this time.
0 commit comments