style(clippy): fix clippy lint
This commit is contained in:
parent
0ffda4e6f9
commit
a0b0f0e852
1 changed files with 1 additions and 3 deletions
|
|
@ -983,9 +983,7 @@ impl<'a> KdlLayoutParser<'a> {
|
|||
fn has_child_nodes(&self, kdl_node: &KdlNode) -> bool {
|
||||
if let Some(children) = kdl_children_nodes!(kdl_node) {
|
||||
for child in children {
|
||||
if kdl_name!(child) == "pane" || kdl_name!(child) == "children" {
|
||||
return true;
|
||||
} else if self.pane_templates.get(kdl_name!(child)).is_some() {
|
||||
if kdl_name!(child) == "pane" || kdl_name!(child) == "children" || self.pane_templates.get(kdl_name!(child)).is_some() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue