mirror of
https://github.com/block/buzz.git
synced 2026-10-29 21:41:33 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user