This commit is contained in:
Austen Adler 2023-03-25 00:50:56 -04:00
parent d11234ea14
commit 93523beb37

View File

@ -19,8 +19,7 @@ pub(crate) fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
} }
[".html", "/index.html"].iter().find_map(|ext| { [".html", "/index.html"].iter().find_map(|ext| {
Asset::get(&format!("{}{}", file.display(), ext)) Asset::get(&format!("{}{}", file.display(), ext)).map(|a| (ContentType::HTML, a.data))
.map(|a| (ContentType::HTML, a.data))
}) })
} }