fix clippy warnings
[nihav.git] / nihav-indeo / src / codecs / indeo2.rs
index 321338821fd662baea35ea3eb18d320c09ce5321..a07904effb60d80c943466fc67838d333e08380e 100644 (file)
@@ -223,8 +223,8 @@ impl Indeo2Decoder {
                 }
                 x += run;
             } else {
-                framebuf[base + x + 0] = table[(idx * 2 + 0) as usize];
-                framebuf[base + x + 1] = table[(idx * 2 + 1) as usize];
+                framebuf[base + x + 0] = table[idx * 2];
+                framebuf[base + x + 1] = table[idx * 2 + 1];
                 x += 2;
             }
         }