diff options
author | 2024-07-05 01:24:10 +0200 | |
---|---|---|
committer | 2024-07-05 01:24:10 +0200 | |
commit | e50aa03edc858d561992d8ca441aa063f273eeac (patch) | |
tree | 0aa1b73fc5163d58eee2b6c74f0566deeb7ce60c /winit/src/program.rs | |
parent | 2b19471d1cfe4cf034b026aa6620b1685a5ab772 (diff) | |
parent | 88611d7653e2a22c82c41f8d1a4732c2af60adcd (diff) | |
download | iced-e50aa03edc858d561992d8ca441aa063f273eeac.tar.gz iced-e50aa03edc858d561992d8ca441aa063f273eeac.tar.bz2 iced-e50aa03edc858d561992d8ca441aa063f273eeac.zip |
Merge pull request #2492 from iced-rs/hide-internal-task-constructors
Hide internal `Task` constructors
Diffstat (limited to 'winit/src/program.rs')
-rw-r--r-- | winit/src/program.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<P: Program, E: Executor>( 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); } } |