X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi%2Fsrc%2Flocal_user%2Fnotifications%2Fmark_reply_read.rs;h=3e502f39c5d0e6b1122612caf42c7528ab57b413;hb=c9f140742925d6da20103124b49f2b58a35fc2b8;hp=46d158863165a108cdb14b27e889061e461a5f49;hpb=4e6409f325bca5b2727b19c24d77ffa2b59109b1;p=lemmy.git diff --git a/crates/api/src/local_user/notifications/mark_reply_read.rs b/crates/api/src/local_user/notifications/mark_reply_read.rs index 46d15886..3e502f39 100644 --- a/crates/api/src/local_user/notifications/mark_reply_read.rs +++ b/crates/api/src/local_user/notifications/mark_reply_read.rs @@ -35,7 +35,7 @@ impl Perform for MarkCommentReplyAsRead { let comment_reply_id = read_comment_reply.id; let read = data.read; - let update_reply = move |conn: &'_ _| CommentReply::update_read(conn, comment_reply_id, read); + let update_reply = move |conn: &mut _| CommentReply::update_read(conn, comment_reply_id, read); blocking(context.pool(), update_reply) .await? .map_err(|e| LemmyError::from_error_message(e, "couldnt_update_comment"))?;