1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00

fix node ancestor depth

This commit is contained in:
Jan Lukas Gernert 2023-02-28 18:27:46 +01:00
parent 58721efa35
commit f4ccd22837

View file

@ -457,7 +457,7 @@ impl Util {
let mut ancestors = Vec::new(); let mut ancestors = Vec::new();
let mut node = node.clone(); let mut node = node.clone();
for _ in 0..=max_depth { for _ in 0..max_depth {
let parent = node.get_parent(); let parent = node.get_parent();
match parent { match parent {
Some(parent) => { Some(parent) => {