From 93523beb37192eac86ef98b66ff83c65a3c96112 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 25 Mar 2023 00:50:56 -0400 Subject: [PATCH] Format --- web/src/static_assets.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/static_assets.rs b/web/src/static_assets.rs index 4fd72be..b9df621 100644 --- a/web/src/static_assets.rs +++ b/web/src/static_assets.rs @@ -19,8 +19,7 @@ pub(crate) fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> { } [".html", "/index.html"].iter().find_map(|ext| { - Asset::get(&format!("{}{}", file.display(), ext)) - .map(|a| (ContentType::HTML, a.data)) + Asset::get(&format!("{}{}", file.display(), ext)).map(|a| (ContentType::HTML, a.data)) }) }