mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-21 21:48:21 -05:00
🚨 chore: make rust format checks happy (#603)
This commit is contained in:
parent
98e817c0a8
commit
1883093dc7
@ -104,9 +104,7 @@ pub async fn search(
|
|||||||
let (results_list, cache_keys): (Vec<SearchResults>, Vec<String>) =
|
let (results_list, cache_keys): (Vec<SearchResults>, Vec<String>) =
|
||||||
[previous_results?, results.clone(), next_results?]
|
[previous_results?, results.clone(), next_results?]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|(result, cache_key, flag)| {
|
.filter_map(|(result, cache_key, flag)| flag.then_some((result, cache_key)))
|
||||||
flag.then_some((result, cache_key))
|
|
||||||
})
|
|
||||||
.multiunzip();
|
.multiunzip();
|
||||||
|
|
||||||
tokio::spawn(async move { cache.cache_results(&results_list, &cache_keys).await });
|
tokio::spawn(async move { cache.cache_results(&results_list, &cache_keys).await });
|
||||||
|
Loading…
Reference in New Issue
Block a user