fix clippy

This commit is contained in:
Evan Almloff committed 2023-04-17 13:44:44 -05:00
1 parent 9877b0f0b1
commit 5d9d9e7441
2 files changed
+17 -23

No files matched your search

+5 -8
View File
@@ -76,16 +76,13 @@ impl Driver for Counter {
event: Rc<EventData>,
_: bool,
) {
match event_type {
"input" => {
// when the button is clicked, increment the counter
if let EventData::Form(input_event) = &*event {
if let Ok(value) = input_event.value.parse::<f64>() {
self.count = value;
}
if event_type == "input" {
// when the button is clicked, increment the counter
if let EventData::Form(input_event) = &*event {
if let Ok(value) = input_event.value.parse::<f64>() {
self.count = value;
}
}
_ => {}
}
}