]> Untitled Git - lemmy.git/blobdiff - crates/api/src/local_user/notifications/mark_mention_read.rs
Diesel 2.0.0 upgrade (#2452)
[lemmy.git] / crates / api / src / local_user / notifications / mark_mention_read.rs
index b097ddc41b73026e4b9d7fcdcd9b29d81e6bd414..2179ada05db9714a12e86c39553de494379a3cb8 100644 (file)
@@ -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"))?;