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},