Skip to content

Commit

Permalink
fix: linting issues in scrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioDMFerreira committed Sep 22, 2023
1 parent 2e1a0fb commit c60e853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions news/src/scrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ impl Scrapper {
}

async fn scrap(rss_feed: &RssFeed) -> Result<Feed, CommonError> {
let xml = http_request(rss_feed.url.clone())
.await
.map_err(|v| CommonError::from(v))?;
let xml = http_request(rss_feed.url.clone()).await?;

let feed = parser::parse(xml.reader()).unwrap();

Expand Down
2 changes: 1 addition & 1 deletion users/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub use actix_threadpool::BlockingError;
use diesel::r2d2;
use utils::error::{CommonError, DatabaseError};
use utils::error::DatabaseError;

#[derive(Debug)]
pub struct DieselRepositoryError(DatabaseError);
Expand Down

0 comments on commit c60e853

Please sign in to comment.