mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-08 16:40:00 +02:00
clippy fixes
This commit is contained in:
parent
8c2af14871
commit
69659da983
5 changed files with 51 additions and 54 deletions
|
@ -78,7 +78,7 @@ impl Util {
|
|||
}
|
||||
|
||||
pub fn find_page_url(xpath_ctx: &Context, xpath_page_link: &str) -> Option<url::Url> {
|
||||
let res = Self::evaluate_xpath(&xpath_ctx, &xpath_page_link, false).ok()?;
|
||||
let res = Self::evaluate_xpath(xpath_ctx, xpath_page_link, false).ok()?;
|
||||
let mut url = None;
|
||||
|
||||
for node in res {
|
||||
|
@ -168,7 +168,7 @@ impl Util {
|
|||
.map(|s| format!("{} ", s))
|
||||
.collect::<String>();
|
||||
val.push_str(&part);
|
||||
val.push_str(" ");
|
||||
val.push(' ');
|
||||
}
|
||||
|
||||
Ok(val.trim().to_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue