]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/impls/person_mention.rs
Default imprementations for read and delete in Crud trait (#3707)
[lemmy.git] / crates / db_schema / src / impls / person_mention.rs
index 27c04217e0f1e0e42871fe9535471d695986f935..f2441f00cef92fc343356db550930c46914846f5 100644 (file)
@@ -13,13 +13,6 @@ impl Crud for PersonMention {
   type InsertForm = PersonMentionInsertForm;
   type UpdateForm = PersonMentionUpdateForm;
   type IdType = PersonMentionId;
-  async fn read(pool: &mut DbPool<'_>, person_mention_id: PersonMentionId) -> Result<Self, Error> {
-    let conn = &mut get_conn(pool).await?;
-    person_mention
-      .find(person_mention_id)
-      .first::<Self>(conn)
-      .await
-  }
 
   async fn create(
     pool: &mut DbPool<'_>,