commit 4de16b2d17fd16666045a0d3d7e1ad99fc4df58c
parent da068a43c1fc4c349875d2cdab90a2c41af430c0
Author: BlackDex <black.dex@gmail.com>
Date: Sun, 27 Jan 2019 16:25:02 +0100
Removed unwrap and added ?
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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<Vec<u8>, 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)?;