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(), ))) }