fix formatting

This commit is contained in:
Evan Almloff committed 2023-12-11 14:00:45 -06:00
1 parent 8984482b63
commit 3afb313110
2 files changed
+9 -3

No files matched your search

+8 -2
View File
@@ -47,7 +47,10 @@ pub(super) fn desktop_handler(
// we'll look for the closing </body> tag and insert our little module loader there. // we'll look for the closing </body> tag and insert our little module loader there.
let body = match custom_index { let body = match custom_index {
Some(custom_index) => custom_index Some(custom_index) => custom_index
.replace("</body>", &format!("{}</body>", module_loader(root_name, headless))) .replace(
"</body>",
&format!("{}</body>", module_loader(root_name, headless)),
)
.into_bytes(), .into_bytes(),
None => { None => {
@@ -59,7 +62,10 @@ pub(super) fn desktop_handler(
} }
template template
.replace("<!-- MODULE LOADER -->", &module_loader(root_name, headless)) .replace(
"<!-- MODULE LOADER -->",
&module_loader(root_name, headless),
)
.into_bytes() .into_bytes()
} }
}; };
+1 -1
View File
@@ -56,7 +56,7 @@ pub(crate) fn build(
index_file.clone(), index_file.clone(),
&root_name, &root_name,
&edit_queue, &edit_queue,
headless headless,
) )
} }
}) })