aboutsummaryrefslogtreecommitdiff
path: root/font/src/darwin/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'font/src/darwin/mod.rs')
-rw-r--r--font/src/darwin/mod.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs
index 42927654..dae7ee04 100644
--- a/font/src/darwin/mod.rs
+++ b/font/src/darwin/mod.rs
@@ -591,12 +591,11 @@ mod tests {
let index = ((glyph.width * 3 * row) + (col * 3)) as usize;
let value = glyph.buf[index];
let c = match value {
- 0...50 => ' ',
- 51...100 => '.',
- 101...150 => '~',
- 151...200 => '*',
- 201...255 => '#',
- _ => unreachable!(),
+ 0..=50 => ' ',
+ 51..=100 => '.',
+ 101..=150 => '~',
+ 151..=200 => '*',
+ 201..=255 => '#',
};
print!("{}", c);
}