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

+1 -1
View File
@@ -39,7 +39,7 @@ impl Build {
.application
.out_dir
.clone()
.unwrap_or(PathBuf::from("dist")),
.unwrap_or_else(|| PathBuf::from("dist")),
)
.join("index.html"),
)?;
+1 -1
View File
@@ -30,7 +30,7 @@ impl Clean {
.dioxus_config
.application
.out_dir
.unwrap_or(PathBuf::from("dist"));
.unwrap_or_else(|| PathBuf::from("dist"));
if crate_config.crate_dir.join(&out_dir).is_dir() {
remove_dir_all(crate_config.crate_dir.join(&out_dir))?;
}
+1 -1
View File
@@ -62,7 +62,7 @@ impl Serve {
.application
.out_dir
.clone()
.unwrap_or(PathBuf::from("dist")),
.unwrap_or_else(|| PathBuf::from("dist")),
)
.join("index.html"),
)?;
+1 -1
View File
@@ -48,7 +48,7 @@ impl Translate {
exit(0);
})
});
if temp.is_none() {
if let Some(..) = temp {
if let Some(s) = source {
contents = s;
} else {