Fix empty for loop, if statements and children (#2275)

* fix empty for loop, if statements and children

* fix clippy
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-04-08 19:23:55 -07:00
1 parent 40b576894f
commit af524d979b
8 files changed
+27 -29

No files matched your search

+2 -2
View File
@@ -261,7 +261,7 @@ impl<'a> DynamicContext<'a> {
}
// And then set the path of this node to the current path (which we're hitting during traversal)
self.node_paths[idx] = self.current_path.clone();
self.node_paths[idx].clone_from(&self.current_path);
Some(match root {
BodyNode::Text(_) => TemplateNode::DynamicText { id: idx },
@@ -322,7 +322,7 @@ impl<'a> DynamicContext<'a> {
self.attr_paths.resize_with(idx + 1, Vec::new);
}
self.attr_paths[idx] = self.current_path.clone();
self.attr_paths[idx].clone_from(&self.current_path);
Some(idx)
}