Cleanup web
This commit is contained in:
parent
fe26ee3e42
commit
11b711f878
@ -23,8 +23,7 @@ pub(crate) fn dist(file: PathBuf) -> Option<(ContentType, Cow<'static, [u8]>)> {
|
||||
}
|
||||
|
||||
[".html", "index.html"].iter().find_map(|ext| {
|
||||
let p = format!("{}{}", file.display().to_string(), ext);
|
||||
|
||||
Asset::get(&p).map(|a| (ContentType::HTML, a.data))
|
||||
Asset::get(&format!("{}{}", file.display().to_string(), ext))
|
||||
.map(|a| (ContentType::HTML, a.data))
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user