From 88611d7653e2a22c82c41f8d1a4732c2af60adcd Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 5 Jul 2024 01:13:28 +0200 Subject: Hide internal `Task` constructors --- winit/src/program.rs | 4 ++-- winit/src/system.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'winit') diff --git a/winit/src/program.rs b/winit/src/program.rs index d55aedf1..e1693196 100644 --- a/winit/src/program.rs +++ b/winit/src/program.rs @@ -203,7 +203,7 @@ where let (program, task) = runtime.enter(|| P::new(flags)); - if let Some(stream) = task.into_stream() { + if let Some(stream) = runtime::task::into_stream(task) { runtime.run(stream); } @@ -1114,7 +1114,7 @@ fn update( let task = runtime.enter(|| program.update(message)); debug.update_finished(); - if let Some(stream) = task.into_stream() { + if let Some(stream) = runtime::task::into_stream(task) { runtime.run(stream); } } diff --git a/winit/src/system.rs b/winit/src/system.rs index 7997f311..361135be 100644 --- a/winit/src/system.rs +++ b/winit/src/system.rs @@ -5,7 +5,7 @@ use crate::runtime::{self, Task}; /// Query for available system information. pub fn fetch_information() -> Task { - Task::oneshot(|channel| { + runtime::task::oneshot(|channel| { runtime::Action::System(Action::QueryInformation(channel)) }) } -- cgit