From c8ed318e17c8a7673e4260e5d4e12c44c9faa987 Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 10 Mar 2022 03:01:12 -0300 Subject: Export new `system` module --- src/lib.rs | 1 + winit/src/system.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 84e872c7..c9a735e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -224,6 +224,7 @@ pub use settings::Settings; pub use runtime::alignment; pub use runtime::futures; +pub use runtime::system; pub use runtime::{ Alignment, Background, Color, Command, ContentFit, Font, Length, Point, Rectangle, Size, Subscription, Vector, diff --git a/winit/src/system.rs b/winit/src/system.rs index cd3ba075..3d1b4022 100644 --- a/winit/src/system.rs +++ b/winit/src/system.rs @@ -1,14 +1,14 @@ //! Access the native system. use crate::command::{self, Command}; -use iced_native::system; +pub use iced_native::system::*; /// Query for available system information. /// /// Returns `None` if not using the `sysinfo` feature flag. pub fn information( - f: impl Fn(Option) -> Message + 'static, + f: impl Fn(Option) -> Message + 'static, ) -> Command { - Command::single(command::Action::System(system::Action::QueryInformation( + Command::single(command::Action::System(Action::QueryInformation( Box::new(f), ))) } -- cgit