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 -4
View File
@@ -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(());