cm-db: threads — drop unnecessary .iter().copied() on participants slice
ci / gates (push) Successful in 6s
ci / frontend (push) Successful in 1m33s
ci / rust (push) Failing after 2m55s
ci / e2e (push) Has been skipped
ci / publish (push) Successful in 2m55s

Inherited from the a2a merge. Iterating `&[AgentId]` directly yields
`&AgentId`; `AgentId::as_uuid(&self)` works fine on that, so the extra
`.iter().copied()` was pure noise and tripped clippy's
`unnecessary_to_owned` under `-D warnings`.
This commit is contained in:
Omar Sobh
2026-07-05 19:04:59 -07:00
parent 15cffba2d7
commit 04f8302871
+1 -1
View File
@@ -112,7 +112,7 @@ pub async fn create_room(
.execute(&mut *tx)
.await?;
let mut seen = std::collections::HashSet::new();
for agent in participants.iter().copied() {
for agent in participants {
if !seen.insert(agent.as_uuid()) {
continue;
}