Use shorthand struct initialization syntax (#482)

This commit is contained in:
Connor E
2018-10-22 18:49:24 +01:00
committed by Philipp Oppermann
parent 0aa59f3ab8
commit cd44531822
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}