From: Dessalines Date: Wed, 12 Aug 2020 12:31:05 +0000 (-0400) Subject: Some formatting of post.rs X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%22https:/hacktivis.me/%7Bs.link%7D?a=commitdiff_plain;h=8ee6f852cb5d5bffb86460cc1933a70782d56424;p=lemmy.git Some formatting of post.rs --- diff --git a/server/lemmy_db/src/post.rs b/server/lemmy_db/src/post.rs index 33b78cd6..3c697e33 100644 --- a/server/lemmy_db/src/post.rs +++ b/server/lemmy_db/src/post.rs @@ -1,4 +1,11 @@ -use crate::{naive_now, schema::{post, post_like, post_read, post_saved}, Crud, Likeable, Saveable, Readable}; +use crate::{ + naive_now, + schema::{post, post_like, post_read, post_saved}, + Crud, + Likeable, + Readable, + Saveable, +}; use diesel::{dsl::*, result::Error, *}; use serde::{Deserialize, Serialize}; use url::{ParseError, Url}; @@ -430,17 +437,17 @@ mod tests { // Post Read let post_read_form = PostReadForm { - post_id: inserted_post.id, - user_id: inserted_user.id, - }; + post_id: inserted_post.id, + user_id: inserted_user.id, + }; let inserted_post_read = PostRead::mark_as_read(&conn, &post_read_form).unwrap(); let expected_post_read = PostRead { - id: inserted_post_read.id, - post_id: inserted_post.id, - user_id: inserted_user.id, - published: inserted_post_read.published, + id: inserted_post_read.id, + post_id: inserted_post.id, + user_id: inserted_user.id, + published: inserted_post_read.published, }; let read_post = Post::read(&conn, inserted_post.id).unwrap();