Never crash: Opus and VP9 encoders without expect()

opusenc: the SILK state is used through if-let / let-else instead of expect("SILK state").
vp9enc: the motion-search SAD and inter prediction return early without a reference frame
instead of expect("reference"). Denies the panic lints in both crates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-04 13:23:06 -04:00
co-authored by Claude Opus 5.5
parent 10644a83aa
commit 5cc376a818
4 changed files with 24 additions and 13 deletions
+2
View File
@@ -18,6 +18,8 @@
//! transforms, loop filter), so prediction never drifts; [`Vp9Encoder::reconstruction`] returns
//! it.
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
mod bool;
mod lf;
mod mc;