Skip to content

Commit

Permalink
Fix wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Nov 6, 2023
1 parent 6e25874 commit 04785f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/common/src/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ async fn start<E: Example>(title: &str) {
}

log::info!("Entering event loop...");
// On native this is a result, but on wasm it's a unit type.
#[allow(clippy::let_unit_value)]
let _ = (event_loop_function)(
window_loop.event_loop,
move |event: Event<()>, target: &EventLoopWindowTarget<()>| {
Expand Down

0 comments on commit 04785f3

Please sign in to comment.