From 3ec1cfba730b20e0426b6de106201bd7f32d4125 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 20 Jan 2024 16:06:19 -0700 Subject: [PATCH] windows: and maybe this fixes the build now! --- window/src/os/windows/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/src/os/windows/window.rs b/window/src/os/windows/window.rs index e88f1ce34..1de33c0b0 100644 --- a/window/src/os/windows/window.rs +++ b/window/src/os/windows/window.rs @@ -721,7 +721,7 @@ impl WindowInner { impl HasDisplayHandle for Window { fn display_handle(&self) -> Result { unsafe { - Ok(DisplayHandle::from_raw(RawDisplayHandle::Windows( + Ok(DisplayHandle::borrow_raw(RawDisplayHandle::Windows( WindowsDisplayHandle::new(), ))) }