From 4de16b2d17fd16666045a0d3d7e1ad99fc4df58c Mon Sep 17 00:00:00 2001 From: BlackDex Date: Sun, 27 Jan 2019 16:25:02 +0100 Subject: [PATCH] Removed unwrap and added ? --- src/api/icons.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/icons.rs b/src/api/icons.rs index 0cf34d3..90c72b8 100644 --- a/src/api/icons.rs +++ b/src/api/icons.rs @@ -283,7 +283,7 @@ fn fix_href(href: &str, url: &str) -> String { } fn download_icon(domain: &str) -> Result, Error> { - let url = get_icon_url(&domain).unwrap(); + let url = get_icon_url(&domain)?; info!("Downloading icon for {} via {}...",domain, url); let mut res = reqwest::get(&url)?;