From 2444649dd1d138b1d31b56ad026ff879e86586c6 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Thu, 26 Sep 2024 19:17:57 -0700 Subject: [PATCH] AddRemove: underscore unused event variables --- app-proto/full-interface/src/add_remove.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app-proto/full-interface/src/add_remove.rs b/app-proto/full-interface/src/add_remove.rs index 59220ae..e0ecf0f 100644 --- a/app-proto/full-interface/src/add_remove.rs +++ b/app-proto/full-interface/src/add_remove.rs @@ -1,5 +1,5 @@ use sycamore::prelude::*; -use web_sys::{MouseEvent, console, wasm_bindgen::JsValue}; +use web_sys::{console, wasm_bindgen::JsValue}; use crate::AppState; use crate::Constraint; @@ -11,7 +11,7 @@ pub fn AddRemove() -> View { view! { div(id="add-remove") { button( - on:click=move |event: MouseEvent| { + on:click=move |_| { console::log_1(&JsValue::from("constraints:")); state.assembly.constraints.with(|csts| { for (_, cst) in csts.into_iter() { @@ -29,7 +29,7 @@ pub fn AddRemove() -> View { disabled={ state.selection.with(|sel| sel.len() != 2) }, - on:click=move |event: MouseEvent| { + on:click=move |_| { let args = state.selection.with( |sel| { let arg_vec: Vec<_> = sel.into_iter().collect();