diff options
| author | 2024-07-05 02:15:13 +0200 | |
|---|---|---|
| committer | 2024-07-05 02:16:45 +0200 | |
| commit | 8bc49cd88653309f5abe8a38d5a4af36fcfea933 (patch) | |
| tree | 6c205ff9964cec1d48934b7ff166532491a349c5 /winit/src | |
| parent | e50aa03edc858d561992d8ca441aa063f273eeac (diff) | |
| download | iced-8bc49cd88653309f5abe8a38d5a4af36fcfea933.tar.gz iced-8bc49cd88653309f5abe8a38d5a4af36fcfea933.tar.bz2 iced-8bc49cd88653309f5abe8a38d5a4af36fcfea933.zip | |
Hide `Subscription` internals
.. and introduce `stream::channel` helper
Diffstat (limited to '')
| -rw-r--r-- | winit/src/program.rs | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/winit/src/program.rs b/winit/src/program.rs index e1693196..3a4e2e48 100644 --- a/winit/src/program.rs +++ b/winit/src/program.rs @@ -207,7 +207,9 @@ where          runtime.run(stream);      } -    runtime.track(program.subscription().map(Action::Output).into_recipes()); +    runtime.track(subscription::into_recipes( +        program.subscription().map(Action::Output), +    ));      let (boot_sender, boot_receiver) = oneshot::channel();      let (event_sender, event_receiver) = mpsc::unbounded(); @@ -1120,7 +1122,7 @@ fn update<P: Program, E: Executor>(      }      let subscription = program.subscription(); -    runtime.track(subscription.map(Action::Output).into_recipes()); +    runtime.track(subscription::into_recipes(subscription.map(Action::Output)));  }  fn run_action<P, C>( | 
