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:
parent
58721efa35
commit
f4ccd22837
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue