Update comment.rs

This commit is contained in:
dullbananas 2024-06-13 14:39:12 -07:00 committed by GitHub
parent 71d7ed8b7a
commit 8700acdc69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,9 @@ impl Crud for Comment {
type UpdateForm = CommentUpdateForm; type UpdateForm = CommentUpdateForm;
type IdType = CommentId; type IdType = CommentId;
/// This is unimplemented, use [[Comment::create]]
async fn create(pool: &mut DbPool<'_>, comment_form: &Self::InsertForm) -> Result<Self, Error> { async fn create(pool: &mut DbPool<'_>, comment_form: &Self::InsertForm) -> Result<Self, Error> {
debug_assert!(false);
Comment::create(pool, comment_form, None).await Comment::create(pool, comment_form, None).await
} }