mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-09 16:08:49 -06:00
Fix clippy.
This commit is contained in:
parent
0af53bd888
commit
9e6a6ed356
@ -13,7 +13,7 @@ pub async fn mark_post_as_read(
|
|||||||
) -> Result<Json<SuccessResponse>, LemmyError> {
|
) -> Result<Json<SuccessResponse>, LemmyError> {
|
||||||
let mut post_ids = HashSet::new();
|
let mut post_ids = HashSet::new();
|
||||||
if let Some(post_ids_) = &data.post_ids {
|
if let Some(post_ids_) = &data.post_ids {
|
||||||
post_ids.extend(post_ids_.iter().cloned().collect::<HashSet<_>>());
|
post_ids.extend(post_ids_.iter().cloned());
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(post_id) = data.post_id {
|
if let Some(post_id) = data.post_id {
|
||||||
|
Loading…
Reference in New Issue
Block a user