Commit 302f032
fix: allow unwrap() in RustCrypto cipher test code
Add #[allow(clippy::unwrap_used)] attribute to the RustCrypto cipher test
module to permit unwrap() calls in test code while maintaining strict
safety in production code.
This matches the pattern established in the HAL cipher tests where:
- Production code remains panic-free (no unwrap/expect/panic)
- Test code can use unwrap() for fail-fast behavior and cleaner assertions
- Tests are meant to panic immediately when assumptions are violated
Resolves clippy warnings about unwrap usage in the comprehensive AES-CTR
test suite while preserving test readability and maintaining security
guidelines for production code.1 parent f15cd63 commit 302f032
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
0 commit comments