diff --git a/web/src/static_assets.rs b/web/src/static_assets.rs index 88b15af..e907cd5 100644 --- a/web/src/static_assets.rs +++ b/web/src/static_assets.rs @@ -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)) }) }