From 20d454794db99a724c6116e7485cbc6c55375a37 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 5 Mar 2024 11:16:56 +0100 Subject: [PATCH] fmt --- crates/routes/src/webfinger.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/routes/src/webfinger.rs b/crates/routes/src/webfinger.rs index c493eb442..b9da07c56 100644 --- a/crates/routes/src/webfinger.rs +++ b/crates/routes/src/webfinger.rs @@ -1,6 +1,6 @@ use activitypub_federation::{ config::Data, - fetch::webfinger::{extract_webfinger_name, Webfinger, WebfingerLink}, + fetch::webfinger::{extract_webfinger_name, Webfinger, WebfingerLink, WEBFINGER_CONTENT_TYPE}, }; use actix_web::{web, web::Query, HttpResponse}; use lemmy_api_common::context::LemmyContext; @@ -12,7 +12,6 @@ use lemmy_db_schema::{ use lemmy_utils::{cache_header::cache_3days, error::LemmyError}; use serde::Deserialize; use std::collections::HashMap; -use activitypub_federation::fetch::webfinger::WEBFINGER_CONTENT_TYPE; use url::Url; #[derive(Deserialize)] @@ -71,7 +70,11 @@ async fn get_webfinger_response( ..Default::default() }; - Ok(HttpResponse::Ok().content_type(&WEBFINGER_CONTENT_TYPE).json(json)) + Ok( + HttpResponse::Ok() + .content_type(&WEBFINGER_CONTENT_TYPE) + .json(json), + ) } fn webfinger_link_for_actor(