From 2086fc0d6b48bc3c8237d0bbdeac6d2d010ca7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 6 Jan 2025 22:48:09 +0100 Subject: [PATCH] Simplify type annotations in `winit::program` --- winit/src/program.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/winit/src/program.rs b/winit/src/program.rs index a236bb950c..653d10bbb1 100644 --- a/winit/src/program.rs +++ b/winit/src/program.rs @@ -569,7 +569,7 @@ async fn run_instance( let mut window_manager = WindowManager::new(); let mut is_window_opening = !is_daemon; - let mut compositor: Option = 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( 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>), graphics::Error>, - >, - > = None; + let mut compositor_receiver: Option> = None; debug.startup_finished();