From e3c68fed87cf4ea4fbce7bd94d14528cbb4f0822 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Sun, 14 Aug 2016 20:25:15 -0700 Subject: Fix tests Errors/warnings fixed. --- src/ansi.rs | 1 - src/input.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ansi.rs b/src/ansi.rs index e2aa2ef1..b2221cbe 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -1072,7 +1072,6 @@ impl Default for State { // Byte sequences used in these tests are recording of pty stdout. #[cfg(test)] mod tests { - use std::io::{Read}; use io::Utf8Chars; use index::{Line, Column}; use super::{Parser, Handler, Attr, TermInfo}; diff --git a/src/input.rs b/src/input.rs index d859abd1..757256d2 100644 --- a/src/input.rs +++ b/src/input.rs @@ -292,7 +292,6 @@ mod tests { use glutin::mods; use super::Processor; - use super::modifier; use super::Binding; /// Receiver that keeps a copy of any strings it is notified with @@ -319,7 +318,7 @@ mod tests { fn $name() { let bindings = &[$binding]; - let mut processor = Processor::new(); + let processor = Processor::new(); let mut receiver = Receiver::default(); processor.process_bindings(bindings, $mode, &mut receiver, $mods); -- cgit