From 5d1e66f7b50bea58e0bc2d29e665cc899fcbbdb5 Mon Sep 17 00:00:00 2001 From: David Wiesen Date: Mon, 6 Oct 2025 14:23:27 -0700 Subject: [PATCH] fix pointer comparison warning. --- codex-rs/tui/src/terminal_palette.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }