mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 02:38:11 +03:00
Removed unwrap and added ?
This commit is contained in:
1 parent
da068a43c1
commit
4de16b2d17
1 file changed
+1
-1
+1
-1
@@ -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)?;
|
||||
|
||||
Reference in new issue
Block a user