From 0af53bd888c7b8ee03174d3b43534a8dbf72fda2 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 17 Oct 2023 14:50:04 -0400 Subject: [PATCH] Remove unecessary & --- crates/api/src/post/mark_read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/api/src/post/mark_read.rs b/crates/api/src/post/mark_read.rs index 931ec0e13..944196c8d 100644 --- a/crates/api/src/post/mark_read.rs +++ b/crates/api/src/post/mark_read.rs @@ -13,7 +13,7 @@ pub async fn mark_post_as_read( ) -> Result, LemmyError> { let mut post_ids = HashSet::new(); if let Some(post_ids_) = &data.post_ids { - post_ids.extend(&post_ids_.iter().cloned().collect::>()); + post_ids.extend(post_ids_.iter().cloned().collect::>()); } if let Some(post_id) = data.post_id {