]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/comment/update.rs
Running clippy --fix (#1647)
[lemmy.git] / crates / api_crud / src / comment / update.rs
index e26a9884e0f64cf397c4dfc7c4ce8fe09f0dc64f..e6ed6ab59c80be69be81e810d7c2ee7ea16a79c9 100644 (file)
@@ -28,12 +28,12 @@ impl PerformCrud for EditComment {
     context: &Data<LemmyContext>,
     websocket_id: Option<ConnectionId>,
   ) -> Result<CommentResponse, LemmyError> {
-    let data: &EditComment = &self;
+    let data: &EditComment = self;
     let local_user_view = get_local_user_view_from_jwt(&data.auth, context.pool()).await?;
 
     let comment_id = data.comment_id;
     let orig_comment = blocking(context.pool(), move |conn| {
-      CommentView::read(&conn, comment_id, None)
+      CommentView::read(conn, comment_id, None)
     })
     .await??;