mirror of
https://github.com/block/buzz.git
synced 2026-11-28 20:22:39 +00:00
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:
parent
b0cc726d3f
commit
db225c63dd
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user