fix some warnings
This commit is contained in:
@@ -180,7 +180,7 @@ impl PostListCache {
|
||||
let list_ref = post_list_cache()
|
||||
.try_get_with(self.key.clone(), async {
|
||||
let mut items: Vec<(i64, i32)> =
|
||||
query_posts.await?.iter().map(|p| self.p2pair(&p)).collect();
|
||||
query_posts.await?.iter().map(|p| self.p2pair(p)).collect();
|
||||
items.sort_by(|a, b| a.0.cmp(&b.0));
|
||||
Ok(Arc::new(RwLock::new(items)))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user