aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2019-02-16 01:53:46 +0100
committerDaniel <kingdread@gmx.de>2019-02-16 01:53:46 +0100
commitf9ae935034a294606931d038329325aba46a7b6f (patch)
tree49592bc33a69cbfec8cc71172ec6ce327141c8d5 /src/main.rs
parentdfbf78622b0869f070d062b3edd40c4a97ce7dfd (diff)
downloadraidgrep-f9ae935034a294606931d038329325aba46a7b6f.tar.gz
raidgrep-f9ae935034a294606931d038329325aba46a7b6f.tar.bz2
raidgrep-f9ae935034a294606931d038329325aba46a7b6f.zip
lint fixes
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
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");
}
}
}