AddRemove: underscore unused event variables
This commit is contained in:
parent
b3afd6f555
commit
2444649dd1
@ -1,5 +1,5 @@
|
|||||||
use sycamore::prelude::*;
|
use sycamore::prelude::*;
|
||||||
use web_sys::{MouseEvent, console, wasm_bindgen::JsValue};
|
use web_sys::{console, wasm_bindgen::JsValue};
|
||||||
|
|
||||||
use crate::AppState;
|
use crate::AppState;
|
||||||
use crate::Constraint;
|
use crate::Constraint;
|
||||||
@ -11,7 +11,7 @@ pub fn AddRemove() -> View {
|
|||||||
view! {
|
view! {
|
||||||
div(id="add-remove") {
|
div(id="add-remove") {
|
||||||
button(
|
button(
|
||||||
on:click=move |event: MouseEvent| {
|
on:click=move |_| {
|
||||||
console::log_1(&JsValue::from("constraints:"));
|
console::log_1(&JsValue::from("constraints:"));
|
||||||
state.assembly.constraints.with(|csts| {
|
state.assembly.constraints.with(|csts| {
|
||||||
for (_, cst) in csts.into_iter() {
|
for (_, cst) in csts.into_iter() {
|
||||||
@ -29,7 +29,7 @@ pub fn AddRemove() -> View {
|
|||||||
disabled={
|
disabled={
|
||||||
state.selection.with(|sel| sel.len() != 2)
|
state.selection.with(|sel| sel.len() != 2)
|
||||||
},
|
},
|
||||||
on:click=move |event: MouseEvent| {
|
on:click=move |_| {
|
||||||
let args = state.selection.with(
|
let args = state.selection.with(
|
||||||
|sel| {
|
|sel| {
|
||||||
let arg_vec: Vec<_> = sel.into_iter().collect();
|
let arg_vec: Vec<_> = sel.into_iter().collect();
|
||||||
|
Loading…
Reference in New Issue
Block a user