Remove `unimplemented` in `<Comment as Crud>::create`

dullbananas-patch-3
dullbananas 2024-06-10 12:41:57 -07:00 committed by GitHub
parent b2a480f55c
commit 71d7ed8b7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

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