Fix deprecated range syntax

This commit is contained in:
Philipp Oppermann
2019-06-17 17:28:27 +02:00
parent 70c24b76d0
commit fcd849f471

View File

@@ -112,7 +112,7 @@ impl Writer {
for byte in s.bytes() { for byte in s.bytes() {
match byte { match byte {
// printable ASCII byte or newline // 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 // not part of printable ASCII range
_ => self.write_byte(0xfe), _ => self.write_byte(0xfe),
} }