diff --git a/src/decoder.rs b/src/decoder.rs index 5c52fbe7..89946bb2 100644 --- a/src/decoder.rs +++ b/src/decoder.rs @@ -232,7 +232,7 @@ impl Decoder { Marker::DQT => { let tables = parse_dqt(&mut self.reader)?; - for (i, &table) in tables.into_iter().enumerate() { + for (i, &table) in tables.iter().enumerate() { if let Some(table) = table { let mut unzigzagged_table = [0u16; 64];