From dbc2418c47dc68858ee2972f83bb5ae8d033452c Mon Sep 17 00:00:00 2001 From: Duncan Date: Sat, 29 Aug 2026 19:40:52 -0400 Subject: [PATCH] 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 Signed-off-by: Will Pfleger --- desktop/src-tauri/src/commands/teams/pending/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src-tauri/src/commands/teams/pending/tests.rs b/desktop/src-tauri/src/commands/teams/pending/tests.rs index 6109fec31a..bcb1a90066 100644 --- a/desktop/src-tauri/src/commands/teams/pending/tests.rs +++ b/desktop/src-tauri/src/commands/teams/pending/tests.rs @@ -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