Fix unused variable warning

This commit is contained in:
Jeremy Soller
2021-03-01 11:15:00 -07:00
committed by Jeremy Soller
parent 2ef4cd7bbd
commit f30a9d84f7

View File

@ -231,8 +231,8 @@ unsafe fn matrix(ec: &mut Ec<Box<dyn Access>>) -> Result<(), Error> {
let cols = *data.get(1).unwrap_or(&0); let cols = *data.get(1).unwrap_or(&0);
let mut byte = 2; let mut byte = 2;
let mut bit = 0; let mut bit = 0;
for row in 0..rows { for _row in 0..rows {
for col in 0..cols { for _col in 0..cols {
if (data.get(byte).unwrap_or(&0) & (1 << bit)) != 0 { if (data.get(byte).unwrap_or(&0) & (1 << bit)) != 0 {
print!("#"); print!("#");
} else { } else {