diff --git a/codex-rs/tui/src/terminal_palette.rs b/codex-rs/tui/src/terminal_palette.rs index 914fa140b3..90e622d46b 100644 --- a/codex-rs/tui/src/terminal_palette.rs +++ b/codex-rs/tui/src/terminal_palette.rs @@ -557,7 +557,7 @@ mod imp { fn query_console_snapshot() -> Option { unsafe { let handle = GetStdHandle(STD_OUTPUT_HANDLE); - if handle.is_null() || std::ptr::eq(handle, INVALID_HANDLE_VALUE) as HANDLE { + if handle.is_null() || std::ptr::eq(handle, INVALID_HANDLE_VALUE) { return None; }