fix clippy
This commit is contained in:
1 parent
9877b0f0b1
commit
5d9d9e7441
2 files changed
+2
-8
No files matched your search
@@ -309,8 +309,7 @@ fn custom_elements_work() {
|
||||
let size = *node.get::<LayoutState>().unwrap();
|
||||
let id = node.id();
|
||||
println!("{indent}{id:?} {color:?} {size:?} {node_type:?}");
|
||||
match node_type {
|
||||
NodeType::Element(el) => {
|
||||
if let NodeType::Element(el) = node_type {
|
||||
match el.tag.as_str() {
|
||||
// the color should bubble up from customelementslot
|
||||
"testing132" | "customelementslot" => {
|
||||
@@ -326,8 +325,6 @@ fn custom_elements_work() {
|
||||
assert_eq!(size.size, (i + 2).saturating_sub(height));
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -76,8 +76,7 @@ impl Driver for Counter {
|
||||
event: Rc<EventData>,
|
||||
_: bool,
|
||||
) {
|
||||
match event_type {
|
||||
"input" => {
|
||||
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>() {
|
||||
@@ -85,8 +84,6 @@ impl Driver for Counter {
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
fn poll_async(&mut self) -> std::pin::Pin<Box<dyn futures::Future<Output = ()> + '_>> {
|
||||
|
||||
Reference in new issue
Block a user