rocket 0.5-rc2 & rust 1.64

This commit is contained in:
2022-09-23 12:47:06 +08:00
parent 2bae66099d
commit 791d1f526d
12 changed files with 30 additions and 29 deletions

View File

@@ -355,7 +355,7 @@ impl BlockDictCache {
let missing: Vec<(String, bool)> =
future::try_join_all(hash_list.iter().filter_map(|hash| {
(!block_dict.contains_key(&hash.to_string())).then(|| async {
(!block_dict.contains_key(&hash.to_string())).then_some(async {
Ok::<(String, bool), RedisError>((
hash.to_string(),
BlockedUsers::check_if_block(&self.rconn, user, hash).await?,