Format code
This commit is contained in:
1 parent
714c6dd46f
commit
001410f119
6 files changed
+5
-11
No files matched your search
+1
-4
@@ -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();
|
||||
|
||||
@@ -12,7 +12,6 @@ impl Build {
|
||||
pub fn build(self) -> Result<()> {
|
||||
let mut crate_config = crate::CrateConfig::new()?;
|
||||
|
||||
|
||||
// change the release state.
|
||||
crate_config.with_release(self.build.release);
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ pub enum Config {
|
||||
/// Format print Dioxus config.
|
||||
FormatPrint {},
|
||||
/// Create a custom html file.
|
||||
CustomHtml {}
|
||||
CustomHtml {},
|
||||
}
|
||||
|
||||
impl Config {
|
||||
|
||||
+1
-1
@@ -4,8 +4,8 @@ pub mod clean;
|
||||
pub mod config;
|
||||
pub mod create;
|
||||
pub mod serve;
|
||||
pub mod translate;
|
||||
pub mod tool;
|
||||
pub mod translate;
|
||||
|
||||
use crate::{
|
||||
cfg::{ConfigOptsBuild, ConfigOptsServe},
|
||||
|
||||
+1
-3
@@ -11,9 +11,7 @@ pub enum Tool {
|
||||
/// Get default app install path.
|
||||
AppPath {},
|
||||
/// Install a new tool.
|
||||
Add {
|
||||
name: String
|
||||
}
|
||||
Add { name: String },
|
||||
}
|
||||
|
||||
impl Tool {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
use crate::error::Result;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{fs::File, io::Read, path::PathBuf, collections::HashMap};
|
||||
use std::{collections::HashMap, fs::File, io::Read, path::PathBuf};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct DioxusConfig {
|
||||
|
||||
Reference in new issue
Block a user