Skip to content

Commit

Permalink
Simplify type annotations in winit::program
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jan 6, 2025
1 parent 6daba88 commit 2086fc0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions winit/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,19 +569,15 @@ 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;

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();

Expand Down

0 comments on commit 2086fc0

Please sign in to comment.