From 23e51f58ae63788d1dd690066f39998226bdfda4 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 8 May 2024 12:46:15 +0200 Subject: [PATCH] fmt --- crates/apub/src/api/user_settings_backup.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/crates/apub/src/api/user_settings_backup.rs b/crates/apub/src/api/user_settings_backup.rs index 3d75fb1e8..8b4202258 100644 --- a/crates/apub/src/api/user_settings_backup.rs +++ b/crates/apub/src/api/user_settings_backup.rs @@ -3,10 +3,11 @@ use crate::objects::{ community::ApubCommunity, person::ApubPerson, post::ApubPost, -};use itertools::Itertools; +}; use activitypub_federation::{config::Data, fetch::object_id::ObjectId, traits::Object}; use actix_web::web::Json; use futures::{future::try_join_all, StreamExt}; +use itertools::Itertools; use lemmy_api_common::{context::LemmyContext, SuccessResponse}; use lemmy_db_schema::{ newtypes::DbUrl, @@ -245,11 +246,11 @@ pub async fn import_settings( |(blocked, context)| async move { let context = context.reset_request_count(); let target = blocked.dereference(&context).await?; - let form = PersonBlockForm { - person_id, - target_id: target.id, - }; - PersonBlock::block(&mut context.pool(), &form).await?; + let form = PersonBlockForm { + person_id, + target_id: target.id, + }; + PersonBlock::block(&mut context.pool(), &form).await?; LemmyResult::Ok(()) }, ) @@ -325,7 +326,7 @@ mod tests { traits::{Crud, Followable}, }; use lemmy_db_views::structs::LocalUserView; - use lemmy_db_views_actor::structs::{CommunityFollowerView}; + use lemmy_db_views_actor::structs::CommunityFollowerView; use lemmy_utils::error::{LemmyErrorType, LemmyResult}; use pretty_assertions::assert_eq; use serial_test::serial;