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:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user