From fc0c96206dd8dbc3fc4d0b9a2dddae96188290f0 Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Wed, 30 Oct 2019 00:42:41 -0700 Subject: [PATCH] fix clippy::into_iter_on_array error in decoder --- src/decoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];