diff --git a/rio-window/examples/util/fill.rs b/rio-window/examples/util/fill.rs index 6e5a45cf..61e5a0e7 100644 --- a/rio-window/examples/util/fill.rs +++ b/rio-window/examples/util/fill.rs @@ -11,7 +11,7 @@ pub use platform::cleanup_window; pub use platform::fill_window; -#[cfg(all(feature = "rwh_06", not(any(target_os = "android", target_os = "ios"))))] +#[cfg(not(target_os = "ios"))] mod platform { use std::cell::RefCell; use std::collections::HashMap; @@ -112,15 +112,3 @@ mod platform { }); } } - -#[cfg(not(all(feature = "rwh_06", not(any(target_os = "android", target_os = "ios")))))] -mod platform { - pub fn fill_window(_window: &rio_window::window::Window) { - // No-op on mobile platforms. - } - - #[allow(dead_code)] - pub fn cleanup_window(_window: &rio_window::window::Window) { - // No-op on mobile platforms. - } -} diff --git a/rio-window/examples/window.rs b/rio-window/examples/window.rs index 818200ea..eef29be3 100644 --- a/rio-window/examples/window.rs +++ b/rio-window/examples/window.rs @@ -11,7 +11,7 @@ use std::{fmt, mem}; use ::tracing::{error, info}; use cursor_icon::CursorIcon; #[cfg(not(any(android_platform, ios_platform)))] -use rwh_06::{DisplayHandle, HasDisplayHandle}; +use raw_window_handle::{DisplayHandle, HasDisplayHandle}; #[cfg(not(any(android_platform, ios_platform)))] use softbuffer::{Context, Surface};