diff --git a/blog/content/second-edition/posts/03-vga-text-buffer/index.md b/blog/content/second-edition/posts/03-vga-text-buffer/index.md index 0c4e9bed..e21bcd3e 100644 --- a/blog/content/second-edition/posts/03-vga-text-buffer/index.md +++ b/blog/content/second-edition/posts/03-vga-text-buffer/index.md @@ -176,7 +176,7 @@ impl Writer { let color_code = self.color_code; self.buffer.chars[row][col] = ScreenChar { ascii_character: byte, - color_code: color_code, + color_code, }; self.column_position += 1; } diff --git a/src/vga_buffer.rs b/src/vga_buffer.rs index 3e937482..f3d9a58c 100644 --- a/src/vga_buffer.rs +++ b/src/vga_buffer.rs @@ -93,7 +93,7 @@ impl Writer { let color_code = self.color_code; self.buffer.chars[row][col].write(ScreenChar { ascii_character: byte, - color_code: color_code, + color_code, }); self.column_position += 1; }