fix(desktop): repair clippy and doc-comment issues from pass-3 corrections

- backfill.rs: remove blank line between two consecutive doc comment blocks
- detach.rs: merge orphaned step-list doc comment into function doc comment
- migration.rs: remove blank line after doc comment before private fn
- migration_tests.rs, migration_command_tests.rs, migration_avatar_tests.rs,
  migration_databricks_tests.rs: add .unwrap() to calls that now return
  Result after C5 migration fallibility changes

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7
2026-08-03 04:30:47 -04:00
parent b0cc726d3f
commit db225c63dd
7 changed files with 44 additions and 43 deletions

View File

@@ -14,7 +14,7 @@ fn reconcile_legacy_command_names_rewrites_renamed_sidecars() {
}]),
);
reconcile_legacy_command_names_in_file(&dir.path().join("agents/managed-agents.json"));
reconcile_legacy_command_names_in_file(&dir.path().join("agents/managed-agents.json")).unwrap();
let records = read_agents_json(dir.path());
assert_eq!(records[0]["acp_command"], "buzz-acp");
@@ -35,7 +35,7 @@ fn reconcile_legacy_command_names_updates_removed_mcp_server_for_buzz_agent() {
}]),
);
reconcile_legacy_command_names_in_file(&dir.path().join("agents/managed-agents.json"));
reconcile_legacy_command_names_in_file(&dir.path().join("agents/managed-agents.json")).unwrap();
let records = read_agents_json(dir.path());
assert_eq!(records[0]["acp_command"], "buzz-acp");
@@ -56,7 +56,7 @@ fn reconcile_legacy_command_names_clears_removed_mcp_server_for_goose() {
}]),
);
reconcile_legacy_command_names_in_file(&dir.path().join("agents/managed-agents.json"));
reconcile_legacy_command_names_in_file(&dir.path().join("agents/managed-agents.json")).unwrap();
let records = read_agents_json(dir.path());
assert_eq!(records[0]["acp_command"], "buzz-acp");
@@ -77,7 +77,7 @@ fn reconcile_legacy_command_names_preserves_custom_commands() {
let path = dir.path().join("agents/managed-agents.json");
let before = std::fs::read_to_string(&path).unwrap();
reconcile_legacy_command_names_in_file(&path);
reconcile_legacy_command_names_in_file(&path).unwrap();
assert_eq!(before, std::fs::read_to_string(&path).unwrap());
}