aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2024-05-03 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2024-05-03 00:00:00 +0000
commitc2091ee7c78e43ee9ca0f423b5975db1311147aeb344b8345ec533a52fc4e428 (patch)
tree31ab2a845fd4dac55ec35f53ce8afef679921d23ba2891df337a81b8ac7063f6 /src
parenta36d995b7c34449e7f4d33c7592192e16e0db9f599f563b3fef6d63b067ff8ce (diff)
downloadhitomezashi-rs-c2091ee7c78e43ee9ca0f423b5975db1311147aeb344b8345ec533a52fc4e428.tar.gz
hitomezashi-rs-c2091ee7c78e43ee9ca0f423b5975db1311147aeb344b8345ec533a52fc4e428.zip
Complete replacement of print!() with write!()
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a494a23..feba85f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -117,7 +117,7 @@ pub fn generate(width: usize, height: usize, skew: Option<f64>) {
}
print_square(&mut lock, cur_row[cur_row.capacity() - 1]);
- println!(); // End of base case
+ writeln!(&mut lock).unwrap(); // End of base case
for row_bit in row_bits.iter() {
/* Recursive case
@@ -131,6 +131,6 @@ pub fn generate(width: usize, height: usize, skew: Option<f64>) {
print_square(&mut lock, *x1);
});
- println!(); // End of recursive case
+ writeln!(&mut lock).unwrap(); // End of recursive case
}
}