fix clippy
This commit is contained in:
1 parent
9877b0f0b1
commit
5d9d9e7441
2 files changed
+17
-23
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user