X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi%2Fsrc%2Flocal_user%2Fnotifications%2Fmark_mention_read.rs;h=2179ada05db9714a12e86c39553de494379a3cb8;hb=c9f140742925d6da20103124b49f2b58a35fc2b8;hp=b097ddc41b73026e4b9d7fcdcd9b29d81e6bd414;hpb=4e6409f325bca5b2727b19c24d77ffa2b59109b1;p=lemmy.git diff --git a/crates/api/src/local_user/notifications/mark_mention_read.rs b/crates/api/src/local_user/notifications/mark_mention_read.rs index b097ddc4..2179ada0 100644 --- a/crates/api/src/local_user/notifications/mark_mention_read.rs +++ b/crates/api/src/local_user/notifications/mark_mention_read.rs @@ -36,7 +36,7 @@ impl Perform for MarkPersonMentionAsRead { let person_mention_id = read_person_mention.id; let read = data.read; let update_mention = - move |conn: &'_ _| PersonMention::update_read(conn, person_mention_id, read); + move |conn: &mut _| PersonMention::update_read(conn, person_mention_id, read); blocking(context.pool(), update_mention) .await? .map_err(|e| LemmyError::from_error_message(e, "couldnt_update_comment"))?;