style: Apply cargo fix for unused variables

This commit is contained in:
Riz Ashraf committed 2026-10-10 11:12:03 +01:00
1 parent 9f00d8298f
commit 7c9e901c12
2 files changed
+7 -7

No files matched your search

+5 -5
View File
@@ -609,7 +609,7 @@ impl McpTool for TechDebtHandler {
async fn execute(&self, args: Value, state: Arc<MemoryState>) -> crate::error::Result<String> {
let req: TechDebtTool = serde_json::from_value(args).map_err(|e| e.to_string())?;
match req {
TechDebtTool::Log { description, title, ideal_solution, git_commit, git_branch, symbol_references, line_range, namespace, severity, repo_name, file_path, workaround, effort_estimate } => {
TechDebtTool::Log { description, title: _, ideal_solution, git_commit, git_branch, symbol_references: _, line_range, namespace, severity, repo_name, file_path, workaround, effort_estimate } => {
let ns = namespace.clone().unwrap_or_else(crate::models::default_namespace);
let desc = description;
let ideal = ideal_solution.unwrap_or_default();
@@ -1203,7 +1203,7 @@ impl McpTool for ManageCheckpointHandler {
Ok(format!("Checkpoint '{}' created successfully.", name))
}
ManageCheckpointTool::Restore { name_or_id, namespace } => {
ManageCheckpointTool::Restore { name_or_id, namespace: _ } => {
let name = name_or_id.ok_or_else(|| crate::error::AppError::Internal("name_or_id is required".to_string()))?;
let target_dir = state.base_dir.join("checkpoints").join(&name);
@@ -1245,7 +1245,7 @@ impl McpTool for ManageCheckpointHandler {
Ok(format!("Checkpoint '{}' restored successfully.", name))
}
ManageCheckpointTool::List { namespace } => {
ManageCheckpointTool::List { namespace: _ } => {
let mut list = Vec::new();
let checkpoints_dir = state.base_dir.join("checkpoints");
if let Ok(entries) = std::fs::read_dir(&checkpoints_dir) {
@@ -1263,7 +1263,7 @@ impl McpTool for ManageCheckpointHandler {
}
Ok(serde_yaml::to_string(&list)?)
}
ManageCheckpointTool::Delete { name_or_id, namespace } => {
ManageCheckpointTool::Delete { name_or_id, namespace: _ } => {
let name = name_or_id.ok_or_else(|| crate::error::AppError::Internal("name_or_id is required".to_string()))?;
let target_dir = state.base_dir.join("checkpoints").join(&name);
if target_dir.exists() {
@@ -1483,7 +1483,7 @@ impl McpTool for HypothesesHandler {
Ok(format!("Hypothesis '{}' logged successfully.", hyp_id))
}
HypothesesTool::Query { query, task_id, status } => {
HypothesesTool::Query { query, task_id, status: _ } => {
let hypotheses = state.code.hypotheses.read_with(|h| h.clone());
let filtered: Vec<_> = hypotheses
.into_iter()