Format code

This commit is contained in:
YuKun Liu committed 2022-04-17 11:25:53 +08:00
1 parent 714c6dd46f
commit 001410f119
6 files changed
+7 -13

No files matched your search

+2 -5
View File
@@ -132,7 +132,7 @@ pub fn build(config: &CrateConfig) -> Result<()> {
);
}
}
// this code will copy all public file to the output dir
let copy_options = fs_extra::dir::CopyOptions {
overwrite: true,
@@ -204,10 +204,7 @@ pub fn build_desktop(config: &CrateConfig, is_serve: bool) -> Result<()> {
let mut res_path = match &config.executable {
crate::ExecutableType::Binary(name) | crate::ExecutableType::Lib(name) => {
file_name = name.clone();
config
.target_dir
.join(release_type)
.join(name)
config.target_dir.join(release_type).join(name)
}
crate::ExecutableType::Example(name) => {
file_name = name.clone();