From 66c4fed3d64f0e268ccbaa3133097065b6b9cb40 Mon Sep 17 00:00:00 2001 From: Steven Vergenz <1882376+stevenvergenz@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:57:47 -0700 Subject: [PATCH] Formatting --- crates/api_common/src/community.rs | 7 ++++++- crates/apub/src/api/search.rs | 3 ++- crates/db_views_actor/src/structs.rs | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/api_common/src/community.rs b/crates/api_common/src/community.rs index 1a9156b09..0eaeb5aa5 100644 --- a/crates/api_common/src/community.rs +++ b/crates/api_common/src/community.rs @@ -4,7 +4,12 @@ use lemmy_db_schema::{ CommunityVisibility, ListingType, }; -use lemmy_db_views_actor::structs::{CommunityModeratorView, CommunitySortType, CommunityView, PersonView}; +use lemmy_db_views_actor::structs::{ + CommunityModeratorView, + CommunitySortType, + CommunityView, + PersonView, +}; use serde::{Deserialize, Serialize}; use serde_with::skip_serializing_none; #[cfg(feature = "full")] diff --git a/crates/apub/src/api/search.rs b/crates/apub/src/api/search.rs index bda8e07e6..0f4f8af92 100644 --- a/crates/apub/src/api/search.rs +++ b/crates/apub/src/api/search.rs @@ -14,7 +14,8 @@ use lemmy_db_views::{ }; use lemmy_db_views_actor::{ structs::CommunitySortType, - community_view::CommunityQuery, person_view::PersonQuery, + community_view::CommunityQuery, + person_view::PersonQuery, }; use lemmy_utils::error::LemmyResult; diff --git a/crates/db_views_actor/src/structs.rs b/crates/db_views_actor/src/structs.rs index c803fc0cc..ecf9ba11d 100644 --- a/crates/db_views_actor/src/structs.rs +++ b/crates/db_views_actor/src/structs.rs @@ -88,7 +88,6 @@ pub enum CommunitySortType { NameDesc, } - #[skip_serializing_none] #[derive(Debug, PartialEq, Serialize, Deserialize, Clone)] #[cfg_attr(feature = "full", derive(TS, Queryable))]