Format code
This commit is contained in:
1 parent
714c6dd46f
commit
001410f119
6 files changed
+7
-13
No files matched your search
@@ -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},
|
||||
|
||||
+2
-4
@@ -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 {
|
||||
@@ -33,7 +31,7 @@ impl Tool {
|
||||
}
|
||||
Tool::Add { name } => {
|
||||
let tool_list = tools::tool_list();
|
||||
|
||||
|
||||
if !tool_list.contains(&name.as_str()) {
|
||||
log::error!("Tool {name} not found.");
|
||||
return Ok(());
|
||||
|
||||
Reference in new issue
Block a user