style(server): fix all clippy warnings including derivable traits, redundant locals, collapsible blocks and needless borrows
This commit is contained in:
1 parent
4c4150a042
commit
58ad2e76a3
4 files changed
+11
-21
No files matched your search
@@ -216,11 +216,10 @@ impl McpTool for UpdateTaskStatusHandler {
|
||||
}
|
||||
|
||||
for (idx, t) in tasks.iter().enumerate() {
|
||||
if let Some(pid) = &t.parent_id {
|
||||
if let Some(&p_idx) = id_to_idx.get(pid.as_str()) {
|
||||
if let Some(pid) = &t.parent_id
|
||||
&& let Some(&p_idx) = id_to_idx.get(pid.as_str()) {
|
||||
children_map.entry(p_idx).or_default().push(idx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(&start_idx) = id_to_idx.get(target_id.as_str()) {
|
||||
|
||||
Reference in new issue
Block a user