mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
clippy fixes
This commit is contained in:
parent
fcec0d83ee
commit
d62aa8c31a
1 changed files with 3 additions and 3 deletions
|
@ -553,9 +553,9 @@ impl Util {
|
||||||
fn get_elems(node: &Node, tag: &str) -> Option<Node> {
|
fn get_elems(node: &Node, tag: &str) -> Option<Node> {
|
||||||
for child in node.get_child_elements() {
|
for child in node.get_child_elements() {
|
||||||
if child.get_name().to_uppercase() == tag {
|
if child.get_name().to_uppercase() == tag {
|
||||||
return Some(child.clone());
|
return Some(child);
|
||||||
} else {
|
} else if let Some(node) = get_elems(&child, tag) {
|
||||||
return get_elems(&child, tag);
|
return Some(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue