From f948fc2d9bcd81361ac8d45972009fffe2537967 Mon Sep 17 00:00:00 2001 From: Svenn-Arne Dragly Date: Sat, 24 Aug 2024 17:55:50 +0200 Subject: [PATCH] Enable rendering to multiple canvases --- neuronify-core/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(()) }