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) => {