]> Untitled Git - lemmy.git/blobdiff - crates/api/src/comment/save.rs
Diesel 2.0.0 upgrade (#2452)
[lemmy.git] / crates / api / src / comment / save.rs
index 4d599739a254560d8a990968de7d3cf45b6b1e70..e1a26d57304c87ce4446539f4972c797c359eed3 100644 (file)
@@ -32,12 +32,12 @@ impl Perform for SaveComment {
     };
 
     if data.save {
-      let save_comment = move |conn: &'_ _| CommentSaved::save(conn, &comment_saved_form);
+      let save_comment = move |conn: &mut _| CommentSaved::save(conn, &comment_saved_form);
       blocking(context.pool(), save_comment)
         .await?
         .map_err(|e| LemmyError::from_error_message(e, "couldnt_save_comment"))?;
     } else {
-      let unsave_comment = move |conn: &'_ _| CommentSaved::unsave(conn, &comment_saved_form);
+      let unsave_comment = move |conn: &mut _| CommentSaved::unsave(conn, &comment_saved_form);
       blocking(context.pool(), unsave_comment)
         .await?
         .map_err(|e| LemmyError::from_error_message(e, "couldnt_save_comment"))?;