style: applied uniform style across files

This commit is contained in:
Dark-Alex-17 committed 2026-08-28 11:35:45 -06:00
1 parent c170d08654
commit 1e15bc31d5
6 files changed
+13 -23

No files matched your search

+2 -1
View File
@@ -152,7 +152,6 @@ impl Skill {
self.enabled_mcp_servers.as_deref()
}
#[allow(dead_code)]
pub fn mcp_tools(&self) -> Option<&IndexMap<String, Vec<String>>> {
self.mcp_tools.as_ref()
}
@@ -198,6 +197,7 @@ fn parse_skill_string_or_array(value: &Value) -> Option<Vec<String>> {
fn parse_skill_mcp_tools_map(value: &Value) -> Option<IndexMap<String, Vec<String>>> {
let map = value.as_object()?;
let mut mcp_tools = IndexMap::new();
for (server, tools) in map {
if tools.is_null() {
mcp_tools.insert(server.clone(), Vec::new());
@@ -205,6 +205,7 @@ fn parse_skill_mcp_tools_map(value: &Value) -> Option<IndexMap<String, Vec<Strin
mcp_tools.insert(server.clone(), tools);
}
}
Some(mcp_tools)
}