@@ -13,7 +13,7 @@ use std::{char, mem::MaybeUninit};
13
13
14
14
use encode_unicode:: error:: InvalidUtf16Tuple ;
15
15
use encode_unicode:: CharExt ;
16
- use windows_sys:: Win32 :: Foundation :: { CHAR , HANDLE , INVALID_HANDLE_VALUE , MAX_PATH } ;
16
+ use windows_sys:: Win32 :: Foundation :: { HANDLE , INVALID_HANDLE_VALUE , MAX_PATH } ;
17
17
use windows_sys:: Win32 :: Storage :: FileSystem :: {
18
18
FileNameInfo , GetFileInformationByHandleEx , FILE_NAME_INFO ,
19
19
} ;
@@ -225,7 +225,7 @@ pub fn clear_line(out: &Term) -> io::Result<()> {
225
225
Y : csbi. dwCursorPosition . Y ,
226
226
} ;
227
227
let mut written = 0 ;
228
- FillConsoleOutputCharacterA ( hand, b' ' as CHAR , width as u32 , pos, & mut written) ;
228
+ FillConsoleOutputCharacterA ( hand, b' ' , width as u32 , pos, & mut written) ;
229
229
FillConsoleOutputAttribute ( hand, csbi. wAttributes , width as u32 , pos, & mut written) ;
230
230
SetConsoleCursorPosition ( hand, pos) ;
231
231
}
@@ -245,7 +245,7 @@ pub fn clear_chars(out: &Term, n: usize) -> io::Result<()> {
245
245
Y : csbi. dwCursorPosition . Y ,
246
246
} ;
247
247
let mut written = 0 ;
248
- FillConsoleOutputCharacterA ( hand, b' ' as CHAR , width as u32 , pos, & mut written) ;
248
+ FillConsoleOutputCharacterA ( hand, b' ' , width as u32 , pos, & mut written) ;
249
249
FillConsoleOutputAttribute ( hand, csbi. wAttributes , width as u32 , pos, & mut written) ;
250
250
SetConsoleCursorPosition ( hand, pos) ;
251
251
}
@@ -262,7 +262,7 @@ pub fn clear_screen(out: &Term) -> io::Result<()> {
262
262
let cells = csbi. dwSize . X as u32 * csbi. dwSize . Y as u32 ; // as u32, or else this causes stack overflows.
263
263
let pos = COORD { X : 0 , Y : 0 } ;
264
264
let mut written = 0 ;
265
- FillConsoleOutputCharacterA ( hand, b' ' as CHAR , cells, pos, & mut written) ; // cells as u32 no longer needed.
265
+ FillConsoleOutputCharacterA ( hand, b' ' , cells, pos, & mut written) ; // cells as u32 no longer needed.
266
266
FillConsoleOutputAttribute ( hand, csbi. wAttributes , cells, pos, & mut written) ;
267
267
SetConsoleCursorPosition ( hand, pos) ;
268
268
}
@@ -283,7 +283,7 @@ pub fn clear_to_end_of_screen(out: &Term) -> io::Result<()> {
283
283
Y : csbi. dwCursorPosition . Y ,
284
284
} ;
285
285
let mut written = 0 ;
286
- FillConsoleOutputCharacterA ( hand, b' ' as CHAR , cells, pos, & mut written) ; // cells as u32 no longer needed.
286
+ FillConsoleOutputCharacterA ( hand, b' ' , cells, pos, & mut written) ; // cells as u32 no longer needed.
287
287
FillConsoleOutputAttribute ( hand, csbi. wAttributes , cells, pos, & mut written) ;
288
288
SetConsoleCursorPosition ( hand, pos) ;
289
289
}
0 commit comments