From cd44531822813e3e030e7d567e9e799424b7a96f Mon Sep 17 00:00:00 2001 From: Connor E <38229097+c-edw@users.noreply.github.com> Date: Mon, 22 Oct 2018 18:49:24 +0100 Subject: [PATCH] Use shorthand struct initialization syntax (#482) --- blog/content/second-edition/posts/03-vga-text-buffer/index.md | 2 +- src/vga_buffer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }