From 2e403a2d118d4d0f1258c4be79069211f7b4a46c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 9 Jan 2019 23:13:35 +0100 Subject: [PATCH] Make clear we didn't accidentally forget to handle Results --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 67ffcc4..83d69dd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,7 +98,7 @@ impl<'a> Printer<'a> { "─".repeat(3 * 8 + 1), "─".repeat(8), "─".repeat(8) - ); + ).ok(); } fn footer(&mut self) { @@ -110,7 +110,7 @@ impl<'a> Printer<'a> { "─".repeat(3 * 8 + 1), "─".repeat(8), "─".repeat(8) - ); + ).ok(); } fn print_byte(&mut self, b: u8) -> io::Result<()> { @@ -160,7 +160,7 @@ impl<'a> Printer<'a> { write!(self.stdout, "{}", b.color().paint(chr)).ok(); if idx == 8 { - write!(self.stdout, "┊"); + write!(self.stdout, "┊").ok(); } idx += 1;