From 7756081fdbc93aee3f5d11fbd14e3d9f2cbefe57 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 3 Dec 2019 07:20:22 +0100 Subject: Refactor window creation in `iced_winit` --- winit/src/settings/mod.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'winit/src/settings') diff --git a/winit/src/settings/mod.rs b/winit/src/settings/mod.rs index 61a67bdb..151d73d7 100644 --- a/winit/src/settings/mod.rs +++ b/winit/src/settings/mod.rs @@ -1,12 +1,8 @@ //! Configure your application. -#[cfg(target_os = "windows")] -#[path = "windows.rs"] -pub mod platform; - -#[cfg(not(target_os = "windows"))] -#[path = "not_windows.rs"] -pub mod platform; +#[cfg_attr(target_os = "windows", path = "windows.rs")] +#[cfg_attr(not(target_os = "windows"), path = "not_windows.rs")] +mod platform; pub use platform::PlatformSpecific; @@ -31,7 +27,7 @@ pub struct Window { /// Whether the window should have a border, a title bar, etc. pub decorations: bool, - /// Platform specific Setting. + /// Platform specific settings. pub platform_specific: platform::PlatformSpecific, } -- cgit