1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-05-08 19:43:03 +00:00

fix clippy (rustc 1.71.0) (#115)

This commit is contained in:
rolleifx 2023-07-29 10:21:34 +08:00 committed by GitHub
parent 55875d72de
commit aff3bf6c45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ impl<R: Read + Seek> ReadBox<&mut R> for StscBox {
let mut sample_id = 1;
for i in 0..entry_count {
let (first_chunk, samples_per_chunk) = {
let mut entry = entries.get_mut(i as usize).unwrap();
let entry = entries.get_mut(i as usize).unwrap();
entry.first_sample = sample_id;
(entry.first_chunk, entry.samples_per_chunk)
};