Format code
This commit is contained in:
1 parent
714c6dd46f
commit
001410f119
6 files changed
+7
-13
No files matched your search
+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