From 4f629f40b57cdf5478ecb8a4b3d975929d72b48c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 28 Oct 2024 15:19:21 +0100 Subject: [PATCH] fmt --- src/backend/assets.rs | 3 +-- src/backend/mod.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/assets.rs b/src/backend/assets.rs index 6ce5c4e..c38f913 100644 --- a/src/backend/assets.rs +++ b/src/backend/assets.rs @@ -28,8 +28,7 @@ pub async fn file_and_error_handler( .insert("accept-encoding", encodings.clone()); } - let res = get_static_file(Request::from_parts(static_parts, Body::empty()), &root) - .await?; + let res = get_static_file(Request::from_parts(static_parts, Body::empty()), &root).await?; if res.status() == StatusCode::OK { Ok(res.into_response()) diff --git a/src/backend/mod.rs b/src/backend/mod.rs index 24cf3b1..c2f3a82 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -22,7 +22,7 @@ use activitypub_federation::{ http_signatures::generate_actor_keypair, }; use api::api_routes; -use assets::{file_and_error_handler}; +use assets::file_and_error_handler; use axum::{ body::Body, http::{HeaderValue, Request},