From bfc066a1ece598426a7cfc9ffdb6e5afaefaaf1f Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Tue, 14 May 2024 11:17:10 -0700 Subject: [PATCH] Toss return value (#11815) Release Notes: - N/A --- crates/gpui/src/platform/windows/events.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/windows/events.rs b/crates/gpui/src/platform/windows/events.rs index ec2cd125f9..d456a4f4c3 100644 --- a/crates/gpui/src/platform/windows/events.rs +++ b/crates/gpui/src/platform/windows/events.rs @@ -799,7 +799,9 @@ fn handle_display_change_msg(handle: HWND, state_ptr: Rc) // display disconnected // in this case, the OS will move our window to another monitor, and minimize it. // we deminimize the window and query the monitor after moving - unsafe { ShowWindow(handle, SW_SHOWNORMAL) }; + unsafe { + let _ = ShowWindow(handle, SW_SHOWNORMAL); + }; let new_monitor = unsafe { MonitorFromWindow(handle, MONITOR_DEFAULTTONULL) }; // all monitors disconnected if new_monitor.is_invalid() {