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

fix clippy

This commit is contained in:
Jan Lukas Gernert 2023-04-14 10:32:05 +02:00
parent 3a465f2619
commit 57f74c635b

View file

@ -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);