summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-06 22:48:09 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-06 22:48:09 +0100
commit2086fc0d6b48bc3c8237d0bbdeac6d2d010ca7ae (patch)
tree226dd4ce5458109f33a1f8992276cac927842be7 /winit
parent6daba880294e0c3e2b78e10f0bf463dcae6ebec9 (diff)
downloadiced-2086fc0d6b48bc3c8237d0bbdeac6d2d010ca7ae.tar.gz
iced-2086fc0d6b48bc3c8237d0bbdeac6d2d010ca7ae.tar.bz2
iced-2086fc0d6b48bc3c8237d0bbdeac6d2d010ca7ae.zip
Simplify type annotations in `winit::program`
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs
index a236bb95..653d10bb 100644
--- a/winit/src/program.rs
+++ b/winit/src/program.rs
@@ -569,7 +569,7 @@ async fn run_instance<P, C>(
let mut window_manager = WindowManager::new();
let mut is_window_opening = !is_daemon;
- let mut compositor: Option<C> = None;
+ let mut compositor = None;
let mut events = Vec::new();
let mut messages = Vec::new();
let mut actions = 0;
@@ -577,11 +577,7 @@ async fn run_instance<P, C>(
let mut ui_caches = FxHashMap::default();
let mut user_interfaces = ManuallyDrop::new(FxHashMap::default());
let mut clipboard = Clipboard::unconnected();
- let mut compositor_receiver: Option<
- oneshot::Receiver<
- Result<(C, Event<Action<P::Message>>), graphics::Error>,
- >,
- > = None;
+ let mut compositor_receiver: Option<oneshot::Receiver<_>> = None;
debug.startup_finished();