fix: apply automatic clippy fixes across workspace

This commit is contained in:
Riz Ashraf committed 2026-09-21 11:41:55 +01:00
1 parent 73ab5037d8
commit 5da422d23a
12 files changed
+99 -115

No files matched your search

+5 -7
View File
@@ -11,9 +11,9 @@ fn test_eager_tools_parity() {
let memory_source = std::fs::read_to_string(entry.path()).unwrap();
let parts: Vec<&str> = memory_source.split("crate::mcp::tool_def").collect();
for part in parts.iter().skip(1) {
if let Some(start) = part.find("\"") {
if let Some(start) = part.find('"') {
let rest = &part[start + 1..];
if let Some(end) = rest.find("\"") {
if let Some(end) = rest.find('"') {
memory_tools.insert(rest[..end].to_string());
}
}
@@ -34,7 +34,7 @@ fn test_eager_tools_parity() {
&& let Some(start) = line.find("\"name\": \"")
{
let rest = &line[start + 9..];
if let Some(end) = rest.find("\"") {
if let Some(end) = rest.find('"') {
nvim_tools.insert(rest[..end].to_string());
}
}
@@ -57,8 +57,7 @@ fn test_eager_tools_parity() {
let name = tool.as_str().unwrap();
assert!(
memory_tools.contains(name),
"Windows config Memory tool '{}' not implemented in handlers.rs!",
name
"Windows config Memory tool '{name}' not implemented in handlers.rs!"
);
}
}
@@ -68,8 +67,7 @@ fn test_eager_tools_parity() {
let name = tool.as_str().unwrap();
assert!(
nvim_tools.contains(name),
"Windows config Nvim tool '{}' not implemented in nvim-core!",
name
"Windows config Nvim tool '{name}' not implemented in nvim-core!"
);
}
}