fix: use clippy fix

This commit is contained in:
mrxiaozhuox committed 2022-01-25 13:52:33 +08:00
1 parent 84d1867654
commit 1c2cf3330e
7 files changed
+22 -24

No files matched your search

+2 -2
View File
@@ -187,7 +187,7 @@ pub fn build_desktop(config: &CrateConfig) -> Result<()> {
.application
.out_dir
.clone()
.unwrap_or(PathBuf::from("dist"))
.unwrap_or_else(|| PathBuf::from("dist"))
.display()
);
}
@@ -238,7 +238,7 @@ pub fn gen_page(config: &DioxusConfig, serve: bool) -> String {
html = html.replace("{app_name}", &config.application.name);
let title = config.web.app.title.clone().unwrap_or("dioxus | ⛺".into());
let title = config.web.app.title.clone().unwrap_or_else(|| "dioxus | ⛺".into());
html.replace("{app_title}", &title)
}