diff --git a/src/api/icons.rs b/src/api/icons.rs index bf820f1b..9f04a2c9 100644 --- a/src/api/icons.rs +++ b/src/api/icons.rs @@ -495,8 +495,6 @@ async fn download_icon(domain: &str) -> Result<(Bytes, Option<&str>), Error> { let mut buffer = Bytes::new(); let mut icon_type: Option<&str> = None; - use data_url::DataUrl; - let fallback_icon = if CONFIG.icon_service_fallback().is_empty() { None } else { diff --git a/src/config.rs b/src/config.rs index 1a0ba443..44f8819f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1209,7 +1209,9 @@ fn validate_config(cfg: &ConfigItems, on_update: bool) -> Result<(), Error> { let icon_service_fallback = cfg.icon_service_fallback.as_str(); if !icon_service_fallback.is_empty() { if icon_service != "internal" { - err!(format!("Fallback Icon service can only be used for \"internal\" Icon service, you are currently using \"{icon_service}\"")) + err!(format!( + "Fallback Icon service can only be used for \"internal\" Icon service, you are currently using \"{icon_service}\"" + )) } match icon_service_fallback { "bitwarden" | "duckduckgo" | "google" => (), @@ -1223,7 +1225,9 @@ fn validate_config(cfg: &ConfigItems, on_update: bool) -> Result<(), Error> { err!(format!("Fallback Icon service URL `{icon_service_fallback}` has no placeholder \"{{}}\"")) } _ => { - err!(format!("Fallback Icon service URL `{icon_service_fallback}` has more than one placeholder \"{{}}\"")) + err!(format!( + "Fallback Icon service URL `{icon_service_fallback}` has more than one placeholder \"{{}}\"" + )) } } }