fix formatting
This commit is contained in:
1 parent
8984482b63
commit
3afb313110
2 files changed
+9
-3
No files matched your search
@@ -47,7 +47,10 @@ pub(super) fn desktop_handler(
|
||||
// we'll look for the closing </body> tag and insert our little module loader there.
|
||||
let body = match 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(),
|
||||
|
||||
None => {
|
||||
@@ -59,7 +62,10 @@ pub(super) fn desktop_handler(
|
||||
}
|
||||
|
||||
template
|
||||
.replace("<!-- MODULE LOADER -->", &module_loader(root_name, headless))
|
||||
.replace(
|
||||
"<!-- MODULE LOADER -->",
|
||||
&module_loader(root_name, headless),
|
||||
)
|
||||
.into_bytes()
|
||||
}
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ pub(crate) fn build(
|
||||
index_file.clone(),
|
||||
&root_name,
|
||||
&edit_queue,
|
||||
headless
|
||||
headless,
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user