fix(avhw): add SAFETY comments to all undocumented unsafe blocks

Close #7

- Add // SAFETY: comments to 19 undocumented unsafe blocks and impls
- Add nb_streams/null guard on stream array dereference (drain_encoder)
- Add clippy undocumented_unsafe_blocks = warn lint to prevent regression

avhw.rs now has 0 clippy unsafe documentation warnings.
This commit is contained in:
dailz
2026-06-06 15:54:09 +08:00
parent 226768c3e3
commit 7c1c9b2e19
2 changed files with 55 additions and 4 deletions

View File

@@ -31,3 +31,6 @@ dirs = "6"
[dev-dependencies]
tempfile = "3.27.0"
[lints.clippy]
undocumented_unsafe_blocks = "warn"