From c2091ee7c78e43ee9ca0f423b5975db1311147aeb344b8345ec533a52fc4e428 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 3 May 2024 00:00:00 +0000 Subject: Complete replacement of print!() with write!() --- src/lib.rs | 4 ++-- 1 file 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) { } 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) { print_square(&mut lock, *x1); }); - println!(); // End of recursive case + writeln!(&mut lock).unwrap(); // End of recursive case } } -- cgit v1.2.3