fix(personas): replace clone with slice::from_ref in team-refresh test

Clippy: 'this call to clone can be replaced with std::slice::from_ref'
in the write_stores call added by the command-path regression test.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
Duncan
2026-08-29 19:40:52 -04:00
parent 05993fbe7a
commit dbc2418c47

View File

@@ -872,7 +872,7 @@ async fn test_set_persona_shared_publish_retry_refreshes_shared_team_head() {
// Simulate the persona being updated on disk (prompt rewritten) — this is
// the state `set_persona_shared` sees after the persona save lands.
let m1_after = member("m1", "Updated prompt after publish-retry.");
write_stores(dir.path(), &[t.clone()], &[m1_after]);
write_stores(dir.path(), std::slice::from_ref(&t), &[m1_after]);
// Build a PreparedPersonaPublication for m1 at the updated-prompt state.
// This mirrors what `set_persona_shared` does before calling