cargo fmt + clippy --fix: 104 format violations fixed, 8 clippy auto-fixes

This commit is contained in:
MattJackson
2026-04-11 19:10:20 +00:00
parent 96a65de3ff
commit ffa0eaba4d
27 changed files with 831 additions and 378 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ impl M2tsMeta {
/// Write the metadata header to a writer. Padded to 192-byte boundary.
pub fn write_header(w: &mut impl Write, meta: &M2tsMeta) -> io::Result<()> {
let json = serde_json::to_vec(meta).map_err(|e| io::Error::other(e))?;
let json = serde_json::to_vec(meta).map_err(io::Error::other)?;
let json_len = json.len() as u32;
let raw_len = 8 + 4 + json.len(); // magic + len + json