From 36a5210352809b3ca417ec3b869ae4baaca17e16 Mon Sep 17 00:00:00 2001 From: dullbananas Date: Wed, 2 Aug 2023 13:08:44 -0700 Subject: [PATCH] cargo fmt --- crates/db_views/src/comment_view.rs | 8 +------- crates/db_views/src/post_report_view.rs | 3 ++- crates/db_views_actor/src/person_mention_view.rs | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/crates/db_views/src/comment_view.rs b/crates/db_views/src/comment_view.rs index 459d8876e..e44ec0f92 100644 --- a/crates/db_views/src/comment_view.rs +++ b/crates/db_views/src/comment_view.rs @@ -359,13 +359,7 @@ mod tests { #![allow(clippy::indexing_slicing)] use crate::{ - comment_view::{ - Comment, - CommentQuery, - CommentSortType, - CommentView, - DbPool, - }, + comment_view::{Comment, CommentQuery, CommentSortType, CommentView, DbPool}, structs::LocalUserView, }; use lemmy_db_schema::{ diff --git a/crates/db_views/src/post_report_view.rs b/crates/db_views/src/post_report_view.rs index 11b4952b2..5537c214b 100644 --- a/crates/db_views/src/post_report_view.rs +++ b/crates/db_views/src/post_report_view.rs @@ -85,7 +85,8 @@ fn queries<'a>() -> Queries< community_person_ban::id.nullable().is_not_null(), post_like::score.nullable(), PostAggregatesNotInPost::as_select(), - aliases::person2.fields(>::construct_selection().nullable()), + aliases::person2 + .fields(>::construct_selection().nullable()), )) }; diff --git a/crates/db_views_actor/src/person_mention_view.rs b/crates/db_views_actor/src/person_mention_view.rs index ae1ed83ed..708f72351 100644 --- a/crates/db_views_actor/src/person_mention_view.rs +++ b/crates/db_views_actor/src/person_mention_view.rs @@ -252,7 +252,7 @@ impl JoinView for PersonMentionView { my_vote, ): Self::JoinTuple, ) -> Self { - let comment = comment.into_full(person_mention.comment_id), + let comment = comment.into_full(person_mention.comment_id); Self { counts: counts.into_full(&comment), recipient: recipient.into_full(person_mention.recipient_id),