mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
cargo fmt
This commit is contained in:
parent
c3ecad87bf
commit
36a5210352
|
@ -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::{
|
||||||
|
|
|
@ -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()),
|
||||||
))
|
))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue