From ae39ddf03104ddcdf2ed87251937fd2361ccfa07 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 17 Aug 2020 16:52:01 -0400 Subject: [PATCH] Fixing some formatting. --- server/lemmy_db/src/comment.rs | 5 ++++- server/lemmy_db/src/post.rs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/server/lemmy_db/src/comment.rs b/server/lemmy_db/src/comment.rs index 05fe2d21..b2e22aa6 100644 --- a/server/lemmy_db/src/comment.rs +++ b/server/lemmy_db/src/comment.rs @@ -97,7 +97,10 @@ impl Comment { comment.filter(ap_id.eq(object_id)).first::(conn) } - pub fn permadelete_for_creator(conn: &PgConnection, for_creator_id: i32) -> Result, Error> { + pub fn permadelete_for_creator( + conn: &PgConnection, + for_creator_id: i32, + ) -> Result, Error> { use crate::schema::comment::dsl::*; diesel::update(comment.filter(creator_id.eq(for_creator_id))) .set(( diff --git a/server/lemmy_db/src/post.rs b/server/lemmy_db/src/post.rs index d73901bb..a6df50bf 100644 --- a/server/lemmy_db/src/post.rs +++ b/server/lemmy_db/src/post.rs @@ -95,7 +95,10 @@ impl Post { .get_result::(conn) } - pub fn permadelete_for_creator(conn: &PgConnection, for_creator_id: i32) -> Result, Error> { + pub fn permadelete_for_creator( + conn: &PgConnection, + for_creator_id: i32, + ) -> Result, Error> { use crate::schema::post::dsl::*; let perma_deleted = "*Permananently Deleted*"; -- 2.44.1