From 6be805023cdca79bcfa8617674a34c67d337360e Mon Sep 17 00:00:00 2001 From: marc2332 Date: Thu, 19 Dec 2024 21:57:35 +0100 Subject: [PATCH] fix lint --- crates/torin/src/torin.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/torin/src/torin.rs b/crates/torin/src/torin.rs index 24128f5f5..be15576db 100644 --- a/crates/torin/src/torin.rs +++ b/crates/torin/src/torin.rs @@ -201,7 +201,12 @@ impl Torin { DirtyReason::Reorder => true, }; for child_id in parent_children { - self.safe_invalidate(child_id, dom_adapter); + if found_node { + self.safe_invalidate(child_id, dom_adapter); + } + if child_id == node_id { + found_node = true; + } } // Try using the node's parent as root candidate if it has multiple children