From f9ae935034a294606931d038329325aba46a7b6f Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 16 Feb 2019 01:53:46 +0100 Subject: lint fixes --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 13d0a76..e63eb44 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,8 +49,8 @@ macro_rules! debug { use std::io::Write; let stderr = ::std::io::stderr(); let mut lock = stderr.lock(); - write!(lock, "[d] "); - writeln!(lock, $($arg)*); + write!(lock, "[d] ").expect("debug write failed"); + writeln!(lock, $($arg)*).expect("debug write failed"); } } } -- cgit v1.2.3