diff options
author | 2024-07-05 01:13:28 +0200 | |
---|---|---|
committer | 2024-07-05 01:13:28 +0200 | |
commit | 88611d7653e2a22c82c41f8d1a4732c2af60adcd (patch) | |
tree | 0aa1b73fc5163d58eee2b6c74f0566deeb7ce60c /runtime/src/lib.rs | |
parent | 2b19471d1cfe4cf034b026aa6620b1685a5ab772 (diff) | |
download | iced-88611d7653e2a22c82c41f8d1a4732c2af60adcd.tar.gz iced-88611d7653e2a22c82c41f8d1a4732c2af60adcd.tar.bz2 iced-88611d7653e2a22c82c41f8d1a4732c2af60adcd.zip |
Hide internal `Task` constructors
Diffstat (limited to 'runtime/src/lib.rs')
-rw-r--r-- | runtime/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 7e46593a..f27657d1 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -15,14 +15,13 @@ pub mod keyboard; pub mod overlay; pub mod program; pub mod system; +pub mod task; pub mod user_interface; pub mod window; #[cfg(feature = "multi-window")] pub mod multi_window; -mod task; - // We disable debug capabilities on release builds unless the `debug` feature // is explicitly enabled. #[cfg(feature = "debug")] @@ -127,5 +126,5 @@ where /// This will normally close any application windows and /// terminate the runtime loop. pub fn exit<T>() -> Task<T> { - Task::effect(Action::Exit) + task::effect(Action::Exit) } |