diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -112,11 +112,11 @@ fn generate_to_buffer<W: Write>( * The first row has no preceding row, so it's computing using the column stitches */ cur_row.push(first_square); for col in 0..(cur_row.capacity() - 1) { - print_square(&mut stream, cur_row[col]); + print_square(stream, cur_row[col]); cur_row.push(cur_row[col] ^ col_bits[col]); } - print_square(&mut stream, cur_row[cur_row.capacity() - 1]); + print_square(stream, cur_row[cur_row.capacity() - 1]); stream.write_all(b"\n").unwrap(); // End of base case for row_bit in row_bits.iter() { @@ -128,7 +128,7 @@ fn generate_to_buffer<W: Write>( .zip(alt_bits.iter()) .for_each(|(x1, &x2)| { *x1 ^= x2 ^ row_bit; - print_square(&mut stream, *x1); + print_square(stream, *x1); }); stream.write_all(b"\n").unwrap(); // End of recursive case |