fix: remove unstable feature
This commit is contained in:
parent
1ecbd89124
commit
0099fc0770
4 changed files with 3 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1786,7 +1786,7 @@ checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "site_icons"
|
name = "site_icons"
|
||||||
version = "0.6.2"
|
version = "0.6.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"byteorder",
|
"byteorder",
|
||||||
"cached",
|
"cached",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "site_icons"
|
name = "site_icons"
|
||||||
version = "0.6.2"
|
version = "0.6.3"
|
||||||
authors = ["Sam Denty <sam@samdenty.com>"]
|
authors = ["Sam Denty <sam@samdenty.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#![feature(async_closure)]
|
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
//! # site_icons
|
//! # site_icons
|
||||||
//! An efficient website icon scraper.
|
//! An efficient website icon scraper.
|
||||||
|
|
|
@ -41,7 +41,7 @@ async fn load_manifest_cached(url: Url) -> Result<Vec<Icon>, String> {
|
||||||
.map_err(|e| format!("{}: {:?}", url, e))?;
|
.map_err(|e| format!("{}: {:?}", url, e))?;
|
||||||
|
|
||||||
Ok(
|
Ok(
|
||||||
join_all(manifest.icons.into_iter().map(async move |icon| {
|
join_all(manifest.icons.into_iter().map(|icon| async move {
|
||||||
if let Ok(src) = url.join(&icon.src) {
|
if let Ok(src) = url.join(&icon.src) {
|
||||||
Icon::load(src, IconKind::AppIcon, icon.sizes).await.ok()
|
Icon::load(src, IconKind::AppIcon, icon.sizes).await.ok()
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in a new issue