Use serde default instead of options in the CLI
This commit is contained in:
1 parent
51b62dd33a
commit
8b4e0b3e07
8 files changed
+100
-122
No files matched your search
@@ -54,14 +54,7 @@ impl Build {
|
||||
let mut file = std::fs::File::create(
|
||||
crate_config
|
||||
.crate_dir
|
||||
.join(
|
||||
crate_config
|
||||
.dioxus_config
|
||||
.application
|
||||
.out_dir
|
||||
.clone()
|
||||
.unwrap_or_else(|| PathBuf::from("dist")),
|
||||
)
|
||||
.join(crate_config.dioxus_config.application.out_dir.clone())
|
||||
.join("index.html"),
|
||||
)?;
|
||||
file.write_all(temp.as_bytes())?;
|
||||
|
||||
Reference in new issue
Block a user