aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/filters.rs2
-rw-r--r--src/main.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/filters.rs b/src/filters.rs
index f9db377..ef8bfad 100644
--- a/src/filters.rs
+++ b/src/filters.rs
@@ -1,6 +1,6 @@
use evtclib::{AgentName, Log};
-use super::{SearchField, FightOutcome, LogResult, Opt};
+use super::{SearchField, LogResult, Opt};
/// Do filtering based on the character or account name.
pub fn filter_name(log: &Log, opt: &Opt) -> bool {
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");
}
}
}