fix: use clippy fix
This commit is contained in:
1 parent
84d1867654
commit
1c2cf3330e
7 files changed
+22
-24
No files matched your search
@@ -39,7 +39,7 @@ impl Build {
|
||||
.application
|
||||
.out_dir
|
||||
.clone()
|
||||
.unwrap_or(PathBuf::from("dist")),
|
||||
.unwrap_or_else(|| PathBuf::from("dist")),
|
||||
)
|
||||
.join("index.html"),
|
||||
)?;
|
||||
|
||||
@@ -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))?;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ impl Serve {
|
||||
.application
|
||||
.out_dir
|
||||
.clone()
|
||||
.unwrap_or(PathBuf::from("dist")),
|
||||
.unwrap_or_else(|| PathBuf::from("dist")),
|
||||
)
|
||||
.join("index.html"),
|
||||
)?;
|
||||
|
||||
@@ -48,7 +48,7 @@ impl Translate {
|
||||
exit(0);
|
||||
})
|
||||
});
|
||||
if temp.is_none() {
|
||||
if let Some(..) = temp {
|
||||
if let Some(s) = source {
|
||||
contents = s;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user