Skip to content

Commit

Permalink
Use self:: when re-importing local module (#3757)
Browse files Browse the repository at this point in the history
Follow-up to #3755.
  • Loading branch information
madsmtm authored Jun 24, 2024
1 parent 9d5412f commit 8bdd4d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/platform_impl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;

Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 8bdd4d6

Please sign in to comment.