Zero clippy warnings: fix all 32 remaining

- Iterator::find() replaces manual loops (6 sites)
- Index-only loops → iterators (4 sites)
- Identical if-blocks merged
- Box large MkvStream WriteState enum variant
- Vec macro initializers, late init fixes
- Unused fields prefixed with underscore (format spec fields)
- Dead code removed or documented

0 clippy warnings. 319 tests passing.
This commit is contained in:
MattJackson
2026-04-11 19:33:13 +00:00
parent a74d395f68
commit 8441b0e9b1
27 changed files with 80 additions and 106 deletions
+3
View File
@@ -10,6 +10,7 @@ use crate::error::{Error, Result};
/// Parsed MPLS playlist.
#[derive(Debug)]
#[allow(dead_code)]
pub struct Playlist {
/// MPLS version (e.g. "0200" or "0300")
pub version: String,
@@ -23,6 +24,7 @@ pub struct Playlist {
/// A playlist mark entry from the PlayListMark section.
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub struct PlaylistMark {
/// Mark type: 1 = chapter entry mark
pub mark_type: u8,
@@ -34,6 +36,7 @@ pub struct PlaylistMark {
/// A play item — one clip reference with in/out times.
#[derive(Debug)]
#[allow(dead_code)]
pub struct PlayItem {
/// Clip filename without extension (e.g. "00001")
pub clip_id: String,