From 236e2ba2583d8a1d43c5acf56ddf2569e61dc0d2 Mon Sep 17 00:00:00 2001 From: jgcodes2020 Date: Thu, 24 Oct 2024 18:39:39 -0400 Subject: [PATCH] All surfaces now implement RWH traits --- src/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.rs b/src/window.rs index 715fff05b9..bc4e6c7e99 100644 --- a/src/window.rs +++ b/src/window.rs @@ -1336,14 +1336,14 @@ impl std::hash::Hash for dyn Window + '_ { } #[cfg(feature = "rwh_06")] -impl rwh_06::HasDisplayHandle for dyn Window + '_ { +impl rwh_06::HasDisplayHandle for dyn Surface + '_ { fn display_handle(&self) -> Result, rwh_06::HandleError> { self.rwh_06_display_handle().display_handle() } } #[cfg(feature = "rwh_06")] -impl rwh_06::HasWindowHandle for dyn Window + '_ { +impl rwh_06::HasWindowHandle for dyn Surface + '_ { fn window_handle(&self) -> Result, rwh_06::HandleError> { self.rwh_06_window_handle().window_handle() }