]> Untitled Git - lemmy.git/commitdiff
Fixing some formatting.
authorDessalines <tyhou13@gmx.com>
Mon, 17 Aug 2020 20:52:01 +0000 (16:52 -0400)
committerDessalines <tyhou13@gmx.com>
Mon, 17 Aug 2020 20:52:01 +0000 (16:52 -0400)
server/lemmy_db/src/comment.rs
server/lemmy_db/src/post.rs

index 05fe2d21250af1f97512a1b6d29b8fce572c8c47..b2e22aa625e54b8a55157c88774909dd224337f7 100644 (file)
@@ -97,7 +97,10 @@ impl Comment {
     comment.filter(ap_id.eq(object_id)).first::<Self>(conn)
   }
 
-  pub fn permadelete_for_creator(conn: &PgConnection, for_creator_id: i32) -> Result<Vec<Self>, Error> {
+  pub fn permadelete_for_creator(
+    conn: &PgConnection,
+    for_creator_id: i32,
+  ) -> Result<Vec<Self>, Error> {
     use crate::schema::comment::dsl::*;
     diesel::update(comment.filter(creator_id.eq(for_creator_id)))
       .set((
index d73901bb02642740341f8e04077ba3047bd1497e..a6df50bff6618ea485ecc06d7a089b17e257946a 100644 (file)
@@ -95,7 +95,10 @@ impl Post {
       .get_result::<Self>(conn)
   }
 
-  pub fn permadelete_for_creator(conn: &PgConnection, for_creator_id: i32) -> Result<Vec<Self>, Error> {
+  pub fn permadelete_for_creator(
+    conn: &PgConnection,
+    for_creator_id: i32,
+  ) -> Result<Vec<Self>, Error> {
     use crate::schema::post::dsl::*;
 
     let perma_deleted = "*Permananently Deleted*";