Skip to content

Commit 236e2ba

Browse files
committed
All surfaces now implement RWH traits
1 parent dcc96a7 commit 236e2ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/window.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1336,14 +1336,14 @@ impl std::hash::Hash for dyn Window + '_ {
13361336
}
13371337

13381338
#[cfg(feature = "rwh_06")]
1339-
impl rwh_06::HasDisplayHandle for dyn Window + '_ {
1339+
impl rwh_06::HasDisplayHandle for dyn Surface + '_ {
13401340
fn display_handle(&self) -> Result<rwh_06::DisplayHandle<'_>, rwh_06::HandleError> {
13411341
self.rwh_06_display_handle().display_handle()
13421342
}
13431343
}
13441344

13451345
#[cfg(feature = "rwh_06")]
1346-
impl rwh_06::HasWindowHandle for dyn Window + '_ {
1346+
impl rwh_06::HasWindowHandle for dyn Surface + '_ {
13471347
fn window_handle(&self) -> Result<rwh_06::WindowHandle<'_>, rwh_06::HandleError> {
13481348
self.rwh_06_window_handle().window_handle()
13491349
}

0 commit comments

Comments
 (0)