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

update for newer deps

This commit is contained in:
Jan Lukas Gernert 2020-04-28 02:51:30 +02:00
parent 1fbce6413d
commit 1fd7173eac
3 changed files with 13 additions and 13 deletions

View file

@ -17,7 +17,6 @@ use log::{debug, error, info, warn};
use regex;
use reqwest::{Client, Response};
use std::collections;
use std::error::Error;
use std::path::PathBuf;
use std::str::FromStr;
use std::sync::{Arc, RwLock};
@ -66,11 +65,7 @@ impl ArticleScraper {
.send()
.await
.map_err(|err| {
error!(
"Failed head request to: '{}' - '{}'",
url.as_str(),
err.description()
);
error!("Failed head request to: '{}' - '{}'", url.as_str(), err);
err
})
.context(ScraperErrorKind::Http)?;
@ -273,7 +268,7 @@ impl ArticleScraper {
error!(
"Downloading HTML failed: GET '{}' - '{}'",
url.as_str(),
err.description()
err
);
err
})