diff options
author | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-06-23 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <mail@nicholasjohnson.ch> | 2024-06-23 00:00:00 +0000 |
commit | f8883aaecf793da0c9757647762f31dd0e7dfe951cb7dcbfc7d2b3a53f0f8aa3 (patch) | |
tree | d5bf3b3e62b154c3ae85268db456466e62444024ac25667cd682272d7aad72d4 /src | |
parent | 2091037299cd869ebb0b82c48b2a96caaf209f44a55c0f4e490e778098d1f2f0 (diff) | |
download | hitomezashi-rs-f8883aaecf793da0c9757647762f31dd0e7dfe951cb7dcbfc7d2b3a53f0f8aa3.tar.gz hitomezashi-rs-f8883aaecf793da0c9757647762f31dd0e7dfe951cb7dcbfc7d2b3a53f0f8aa3.zip |
Fix double borrows
Diffstat (limited to 'src')
-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 |