From 57f74c635b257414c79590dbc48d5c35120c8cc7 Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Fri, 14 Apr 2023 10:32:05 +0200 Subject: [PATCH] fix clippy --- article_scraper/src/images/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article_scraper/src/images/mod.rs b/article_scraper/src/images/mod.rs index efece1f..7a89ad1 100644 --- a/article_scraper/src/images/mod.rs +++ b/article_scraper/src/images/mod.rs @@ -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);