]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/comment/remove.rs
Replace TypedBuilder with Default in update forms (#3814)
[lemmy.git] / crates / api_crud / src / comment / remove.rs
index b3afcc7553907fd22d8604162ecd9ad488d9b419..2bb5c75f2f9b9fdf12de3b6ee9f105254eb0eb2a 100644 (file)
@@ -48,7 +48,10 @@ pub async fn remove_comment(
   let updated_comment = Comment::update(
     &mut context.pool(),
     comment_id,
-    &CommentUpdateForm::builder().removed(Some(removed)).build(),
+    &CommentUpdateForm {
+      removed: Some(removed),
+      ..Default::default()
+    },
   )
   .await
   .with_lemmy_type(LemmyErrorType::CouldntUpdateComment)?;