From 6a62ee2cfdb93a2b19f978c5201d160db2a35c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Thu, 2 May 2024 19:55:43 +0800 Subject: [PATCH] chore: format code --- crates/api_mastodon/src/routes/instance/instance.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/api_mastodon/src/routes/instance/instance.rs b/crates/api_mastodon/src/routes/instance/instance.rs index e9c0dfd5..0499c93f 100644 --- a/crates/api_mastodon/src/routes/instance/instance.rs +++ b/crates/api_mastodon/src/routes/instance/instance.rs @@ -33,7 +33,7 @@ pub async fn v2(data: Data) -> Result, AppError> { )] #[debug_handler] pub async fn v1(data: Data) -> Result, AppError> { - Ok(Json( - InstanceV1::from_instance(Instance::new(&data).await?)?, - )) + Ok(Json(InstanceV1::from_instance( + Instance::new(&data).await?, + )?)) }