Clippy clean under -D warnings: slice::from_ref in a layout test

Two cloned_ref_to_slice_refs warnings in a store test, which CI's
`cargo clippy -- -D warnings` turns into errors - they failed the rolling
release on master (run 37152201228) after cargo test had passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-03 21:08:55 -04:00
co-authored by Claude Opus 5.5
parent 52b00012f8
commit 2999f306bf
+1 -1
View File
@@ -1998,7 +1998,7 @@ mod dedupe_tests {
"id": "acct|guild:1", "accountId": "acct", "service": "discord", "kind": "guild", "name": "A server"
}))
.unwrap();
s.save_layout(&[buffer.clone()], &[group.clone()]).unwrap();
s.save_layout(std::slice::from_ref(&buffer), std::slice::from_ref(&group)).unwrap();
let (buffers, groups) = s.load_layout().unwrap();
assert_eq!(buffers.len(), 1);
assert_eq!(buffers[0].id, "acct|#one");