no-more-proxy #3
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ async fn find_icon(host: &str) -> Option<String> {
|
||||||
icons
|
icons
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|i| -> Option<InstanceIcon> { i.try_into().ok() })
|
.filter_map(|i| -> Option<InstanceIcon> { i.try_into().ok() })
|
||||||
.filter(|i| i.size > MINIMUM_ICON_SIZE)
|
.filter(|i| i.size >= MINIMUM_ICON_SIZE)
|
||||||
.min_by_key(|i| i.size)
|
.min_by_key(|i| i.size)
|
||||||
.map(|i| i.href)
|
.map(|i| i.href)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue