Skip to content

Commit

Permalink
Fix wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Jun 18, 2024
1 parent 5d9682b commit 83e7f8c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/backends/winit/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,10 +649,7 @@ impl EventLoopState {
#[cfg(target_arch = "wasm32")]
{
winit_loop
.run_app(&mut ActiveEventLoopSetterDuringEventProcessing(
&mut self,
Default::default(),
))
.run_app(&mut ActiveEventLoopSetterDuringEventProcessing(&mut self))
.map_err(|e| format!("Error running winit event loop: {e}"))?;
// This can't really happen, as run() doesn't return
Ok(Self::default())
Expand Down Expand Up @@ -724,7 +721,7 @@ pub fn spawn() -> Result<(), corelib::platform::PlatformError> {

not_running_loop_instance
.instance
.spawn_app(ActiveEventLoopSetterDuringEventProcessing(loop_state, Default::default()));
.spawn_app(ActiveEventLoopSetterDuringEventProcessing(loop_state));

Ok(())
}

0 comments on commit 83e7f8c

Please sign in to comment.