mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 08:05:31 +02:00
fix clippy
This commit is contained in:
parent
3a465f2619
commit
57f74c635b
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ impl ImageDownloader {
|
|||
let content_type = content_type
|
||||
.as_ref()
|
||||
.and_then(|content_type| content_type.to_str().ok())
|
||||
.ok_or_else(|| ImageDownloadError::ContentType)?;
|
||||
.ok_or(ImageDownloadError::ContentType)?;
|
||||
|
||||
if !content_type.contains("image") {
|
||||
return Err(ImageDownloadError::ContentType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue