Format
This commit is contained in:
parent
d11234ea14
commit
93523beb37
@ -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))
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user