chore: fix formatting and clippy lints
This commit is contained in:
1 parent
8952bd5399
commit
9d9e959744
35 files changed
+1091
-582
No files matched your search
@@ -139,8 +139,8 @@ impl McpTool for QueryGitDiffsHandler {
|
||||
let git_matches = tokio::task::spawn_blocking(move || {
|
||||
let mut results = Vec::new();
|
||||
let cwd = env::current_dir().unwrap_or_default();
|
||||
if let Ok(repo) = git2::Repository::discover(&cwd) {
|
||||
if let Ok(mut revwalk) = repo.revwalk() {
|
||||
if let Ok(repo) = git2::Repository::discover(&cwd)
|
||||
&& let Ok(mut revwalk) = repo.revwalk() {
|
||||
let _ = revwalk.push_head();
|
||||
let mut count = 0;
|
||||
for oid in revwalk.flatten() {
|
||||
@@ -161,7 +161,6 @@ impl McpTool for QueryGitDiffsHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
results
|
||||
})
|
||||
.await
|
||||
@@ -215,4 +214,3 @@ mod tests {
|
||||
assert!(parsed.get("branch").is_some() || parsed.is_object());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user