]> Untitled Git - lemmy.git/blobdiff - crates/api_common/src/build_response.rs
Remove redundant calls to `Iterator::collect` (#3365)
[lemmy.git] / crates / api_common / src / build_response.rs
index 374a74d9110359bf021ac06211eeb08a9f3d4890..328827b2ce99a720859e7cf7be23f7c5f4c77a3f 100644 (file)
@@ -98,7 +98,6 @@ pub async fn send_local_notifs(
   for mention in mentions
     .iter()
     .filter(|m| m.is_local(&context.settings().hostname) && m.name.ne(&person.name))
-    .collect::<Vec<&MentionData>>()
   {
     let mention_name = mention.name.clone();
     let user_view = LocalUserView::read_from_name(context.pool(), &mention_name).await;