Skip to content

Commit

Permalink
Nice
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler committed Oct 29, 2024
1 parent 59b8043 commit 5a46fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbx_dom_weak/src/dom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl WeakDom {
// Fast path: if the builder does not have any children, then we don't have to
// construct a queue to keep track of descendants for insertion, avoiding a heap
// allocation.
if root_builder.children.len() == 0 {
if root_builder.children.is_empty() {
insert(self, root_builder, parent_ref, None);
} else {
// Rather than performing this movement recursively, we instead use a
Expand Down

0 comments on commit 5a46fb7

Please sign in to comment.