Clippy: slice::from_ref in policy test a269bee11bb2
- Author
- Andy McCall @andymccall <[email protected]>
- When
- · 2026-09-26 19:20 UTC
- Signature
- ✔ signed by Andy McCall
- Hash
a269bee11bb211a49e72d6d24c2218512589a2ac4780eb0bb3d8c88f4593353f- Depends on
- 83e0677b07fe
- Depended on by
- 75167672ebcd
- In bookmarks
- agents-in-readme bare-hashes carried-not-removed carry-identical doctor-trust identical-sides keyless-tags main merge-remote-bookmark only-help-103 paths-for-resolutions-and-amend push-notes show-stat subrepo-pin-state switch-says
- In tags
- v0.1.0 v0.10.0 v0.11.0 v0.2.0 v0.3.0 v0.3.1 v0.4.0 v0.4.1 v0.4.2 v0.4.3 v0.4.4 v0.4.5 v0.4.6 v0.5.0 v0.5.1 v0.6.0 v0.7.0 v0.8.0 v0.9.0
- Edits
- 2 atoms, 0 tree operations, 1 file
Browse the tree at this change
modified crates/oxy-core/src/policy.rs +1 −1
| … | 289 unchanged lines |
||
| 290 | 290 | let h = p.hash(); |
|
| 291 | 291 | let s1 = r1.sign(Domain::Policy, &i1.hash(), &h); |
|
| 292 | 292 | let s2 = r2.sign(Domain::Policy, &i2.hash(), &h); |
|
| 293 | - | assert!(p.verify_signatures(&[s1.clone()], &p).is_err()); |
|
| 293 | + | assert!(p.verify_signatures(std::slice::from_ref(&s1), &p).is_err()); |
|
| 294 | 294 | assert_eq!(p.verify_signatures(&[s1.clone(), s2.clone()], &p).unwrap().len(), 2); |
|
| 295 | 295 | // Duplicates do not count twice; a non-root signer does not count. |
|
| 296 | 296 | assert!(p.verify_signatures(&[s1.clone(), s1.clone()], &p).is_err()); |
|
| … | 14 unchanged lines |