From fcd849f471fc08df9ceb8dd6c49e3b0e279ef18a Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 17 Jun 2019 17:28:27 +0200 Subject: [PATCH] Fix deprecated range syntax --- src/vga_buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vga_buffer.rs b/src/vga_buffer.rs index 94dbc4c6..66377c11 100644 --- a/src/vga_buffer.rs +++ b/src/vga_buffer.rs @@ -112,7 +112,7 @@ impl Writer { for byte in s.bytes() { match byte { // printable ASCII byte or newline - 0x20...0x7e | b'\n' => self.write_byte(byte), + 0x20..=0x7e | b'\n' => self.write_byte(byte), // not part of printable ASCII range _ => self.write_byte(0xfe), }