cargo fmt

pull/3755/head
dullbananas 2023-08-02 13:08:44 -07:00 committed by GitHub
parent c3ecad87bf
commit 36a5210352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 9 deletions

View File

@ -359,13 +359,7 @@ mod tests {
#![allow(clippy::indexing_slicing)] #![allow(clippy::indexing_slicing)]
use crate::{ use crate::{
comment_view::{ comment_view::{Comment, CommentQuery, CommentSortType, CommentView, DbPool},
Comment,
CommentQuery,
CommentSortType,
CommentView,
DbPool,
},
structs::LocalUserView, structs::LocalUserView,
}; };
use lemmy_db_schema::{ use lemmy_db_schema::{

View File

@ -85,7 +85,8 @@ fn queries<'a>() -> Queries<
community_person_ban::id.nullable().is_not_null(), community_person_ban::id.nullable().is_not_null(),
post_like::score.nullable(), post_like::score.nullable(),
PostAggregatesNotInPost::as_select(), PostAggregatesNotInPost::as_select(),
aliases::person2.fields(<PersonWithoutId as Selectable<Pg>>::construct_selection().nullable()), aliases::person2
.fields(<PersonWithoutId as Selectable<Pg>>::construct_selection().nullable()),
)) ))
}; };

View File

@ -252,7 +252,7 @@ impl JoinView for PersonMentionView {
my_vote, my_vote,
): Self::JoinTuple, ): Self::JoinTuple,
) -> Self { ) -> Self {
let comment = comment.into_full(person_mention.comment_id), let comment = comment.into_full(person_mention.comment_id);
Self { Self {
counts: counts.into_full(&comment), counts: counts.into_full(&comment),
recipient: recipient.into_full(person_mention.recipient_id), recipient: recipient.into_full(person_mention.recipient_id),