From 7280dcd9a691b05ed2e80b24e14482b53d7a3bdf Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 7 Apr 2023 05:17:51 -0700 Subject: [PATCH] Remove a temporary workaround that's no longer needed. --- src/console.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/console.rs b/src/console.rs index 2b45393..2e622d8 100644 --- a/src/console.rs +++ b/src/console.rs @@ -11,13 +11,10 @@ use windows_sys::Win32::System::Console::{ use crate::{AsHandleRef, HandleRef}; -// TODO: windows-sys declares these types with `u32` but we need them to be -// `u16`, so we cast them ourselves. Filed upstream: -// -const FG_BLUE: u16 = FOREGROUND_BLUE as u16; -const FG_GREEN: u16 = FOREGROUND_GREEN as u16; -const FG_INTENSITY: u16 = FOREGROUND_INTENSITY as u16; -const FG_RED: u16 = FOREGROUND_RED as u16; +use FOREGROUND_BLUE as FG_BLUE; +use FOREGROUND_GREEN as FG_GREEN; +use FOREGROUND_INTENSITY as FG_INTENSITY; +use FOREGROUND_RED as FG_RED; const FG_CYAN: u16 = FG_BLUE | FG_GREEN; const FG_MAGENTA: u16 = FG_BLUE | FG_RED;