From 99160228aecde387abc451cb5331173bf96de3cc Mon Sep 17 00:00:00 2001 From: dullbananas Date: Fri, 14 Jun 2024 01:40:57 -0700 Subject: [PATCH] Remove `unimplemented` in `::create` (#4796) * Remove `unimplemented` in `::create` * Update comment.rs --- crates/db_schema/src/impls/comment.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/db_schema/src/impls/comment.rs b/crates/db_schema/src/impls/comment.rs index 6cdb54e4a..0ffd53f86 100644 --- a/crates/db_schema/src/impls/comment.rs +++ b/crates/db_schema/src/impls/comment.rs @@ -118,8 +118,9 @@ impl Crud for Comment { type IdType = CommentId; /// This is unimplemented, use [[Comment::create]] - async fn create(_pool: &mut DbPool<'_>, _comment_form: &Self::InsertForm) -> Result { - unimplemented!(); + async fn create(pool: &mut DbPool<'_>, comment_form: &Self::InsertForm) -> Result { + debug_assert!(false); + Comment::create(pool, comment_form, None).await } async fn update(