Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Toss return value (#11815)
Mikayla Makibfc066a1ece5
diff --git a/crates/gpui/src/platform/windows/events.rs b/crates/gpui/src/platform/windows/events.rsindex ec2cd125f92..d456a4f4c32 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<WindowsWindowStatePtr>)// 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 disconnectedif new_monitor.is_invalid() {