diff --git a/src/platform_impl/mod.rs b/src/platform_impl/mod.rs index 1f3a0b770f..446e4390f3 100644 --- a/src/platform_impl/mod.rs +++ b/src/platform_impl/mod.rs @@ -15,17 +15,17 @@ mod web; mod windows; #[cfg(android_platform)] -use android as platform; +use self::android as platform; #[cfg(target_vendor = "apple")] -use apple as platform; +use self::apple as platform; #[cfg(any(x11_platform, wayland_platform))] -use linux as platform; +use self::linux as platform; #[cfg(orbital_platform)] -use orbital as platform; +use self::orbital as platform; #[cfg(web_platform)] -use web as platform; +use self::web as platform; #[cfg(windows_platform)] -use windows as platform; +use self::windows as platform; pub use self::platform::*; diff --git a/src/platform_impl/web/mod.rs b/src/platform_impl/web/mod.rs index c4cd8afe4e..969d8bb188 100644 --- a/src/platform_impl/web/mod.rs +++ b/src/platform_impl/web/mod.rs @@ -41,10 +41,10 @@ pub use self::monitor::{MonitorHandle, VideoModeHandle}; pub use self::window::{PlatformSpecificWindowAttributes, Window, WindowId}; pub(crate) use self::keyboard::KeyEventExtra; +use self::web_sys as backend; pub(crate) use crate::icon::NoIcon as PlatformIcon; pub(crate) use crate::platform_impl::Fullscreen; pub(crate) use cursor::{ CustomCursor as PlatformCustomCursor, CustomCursorFuture, CustomCursorSource as PlatformCustomCursorSource, }; -use web_sys as backend;