mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-25 21:50:20 +00:00
chore: make clippy happy and limit workspace checks
This commit is contained in:
parent
d3c3c41d9e
commit
bc707db832
2 changed files with 5 additions and 6 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -2,5 +2,6 @@
|
|||
"editor.formatOnSave": true,
|
||||
"[toml]": {
|
||||
"editor.formatOnSave": false
|
||||
}
|
||||
},
|
||||
"rust-analyzer.checkOnSave.allTargets": false,
|
||||
}
|
||||
|
|
|
@ -8,8 +8,7 @@ pub fn convert_from_html(dom: Dom) -> CallBody {
|
|||
roots: dom
|
||||
.children
|
||||
.into_iter()
|
||||
.map(|f| create_body_node_from_node(f))
|
||||
.filter_map(|f| f)
|
||||
.filter_map(create_body_node_from_node)
|
||||
.collect(),
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +36,7 @@ fn create_body_node_from_node(node: Node) -> Option<BodyNode> {
|
|||
ElementAttrNamed {
|
||||
attr: ElementAttr::AttrText {
|
||||
name: ident,
|
||||
value: ifmt_from_text(value.unwrap_or("false".to_string())),
|
||||
value: ifmt_from_text(value.unwrap_or_else(|| "false".to_string())),
|
||||
},
|
||||
el_name: el_name.clone(),
|
||||
}
|
||||
|
@ -68,8 +67,7 @@ fn create_body_node_from_node(node: Node) -> Option<BodyNode> {
|
|||
let children = el
|
||||
.children
|
||||
.into_iter()
|
||||
.map(|f| create_body_node_from_node(f))
|
||||
.filter_map(|f| f)
|
||||
.filter_map(create_body_node_from_node)
|
||||
.collect();
|
||||
|
||||
Some(BodyNode::Element(Element {
|
||||
|
|
Loading…
Reference in a new issue