From bc20175668ebadac438fe98d2bf93f01eee60a3a Mon Sep 17 00:00:00 2001 From: Blodhgarm Date: Tue, 25 Aug 2026 19:02:16 -0500 Subject: [PATCH] fix: be more declarative with types --- apps/labrinth/src/routes/internal/moderation/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/labrinth/src/routes/internal/moderation/mod.rs b/apps/labrinth/src/routes/internal/moderation/mod.rs index 7efc76e198..6f966437af 100644 --- a/apps/labrinth/src/routes/internal/moderation/mod.rs +++ b/apps/labrinth/src/routes/internal/moderation/mod.rs @@ -1957,9 +1957,11 @@ where .await .wrap_internal_err("fetching projects from database")?; - let mut grouped_projects = HashMap::new(); + let mut grouped_projects: HashMap> = HashMap::new(); for project in &projects { - *grouped_projects.entry(project.inner.status).or_default().push(project.inner.id.into()); + *grouped_projects.entry(project.inner.status) + .or_default() + .push(project.inner.id.into()); } Ok(grouped_projects)