From f4ccd2283755c0b6595e4b0314b15fbc7395fa26 Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Tue, 28 Feb 2023 18:27:46 +0100 Subject: [PATCH] fix node ancestor depth --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 01ac1d4..63de5f4 100644 --- a/src/util.rs +++ b/src/util.rs @@ -457,7 +457,7 @@ impl Util { let mut ancestors = Vec::new(); let mut node = node.clone(); - for _ in 0..=max_depth { + for _ in 0..max_depth { let parent = node.get_parent(); match parent { Some(parent) => {