fix some warnings

This commit is contained in:
2026-03-24 03:18:41 +08:00
parent 8e386d98d0
commit 0487427342
5 changed files with 21 additions and 16 deletions

View File

@@ -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)))
})