From e235aea44d73a867f3e1066241f7c54d03dc5caa Mon Sep 17 00:00:00 2001 From: Shocker Date: Tue, 7 Apr 2026 19:44:26 +0300 Subject: [PATCH] code formatting --- src/api/icons.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/icons.rs b/src/api/icons.rs index fb4b57ac..4e0b6791 100644 --- a/src/api/icons.rs +++ b/src/api/icons.rs @@ -567,11 +567,11 @@ async fn download_icon(domain: &str) -> Result<(Bytes, Option<&str>), Error> { // Make sure all icons are checked before returning error let res = match get_page_with_referer(&icon.href, &icon_result.referer).await { Ok(r) => r, - Err(e) if icons.peek().is_none() => return Err(e.into()), - Err(e) if CustomHttpClientError::downcast_ref(&e).is_some() => return Err(e.into()), // If blacklisted stop immediately instead of checking the rest of the icons. see explanation and actual handling inside get_icon() + Err(e) if icons.peek().is_none() => return Err(e), + Err(e) if CustomHttpClientError::downcast_ref(&e).is_some() => return Err(e), // If blacklisted stop immediately instead of checking the rest of the icons. see explanation and actual handling inside get_icon() Err(e) => { warn!("Unable to download icon: {e:?}"); - + // Continue to next icon continue; }