diff --git a/neuronify-core/src/lib.rs b/neuronify-core/src/lib.rs index d58eec3..5f4786d 100644 --- a/neuronify-core/src/lib.rs +++ b/neuronify-core/src/lib.rs @@ -1708,7 +1708,7 @@ pub async fn load(wrapper: &mut WasmWrapper, canvas: &str, url: &str) -> Result< #[wasm_bindgen] pub async fn start(mut wrapper: WasmWrapper) -> Result<(), JsValue> { - let event_handler = move |event, target: &EventLoopWindowTarget| { + let _event_handler = move |event, target: &EventLoopWindowTarget| { for bundle in wrapper.bundles.iter_mut() { let application = &mut bundle.application; let simulation = &mut bundle.simulation; @@ -1731,7 +1731,7 @@ pub async fn start(mut wrapper: WasmWrapper) -> Result<(), JsValue> { } }; #[cfg(target_arch = "wasm32")] - wrapper.event_loop.spawn(event_handler); + wrapper.event_loop.spawn(_event_handler); Ok(()) }