Fix some warnings
Change-Id: I916e6041c6f9c46acd855f271e818babb883771d
diff --git a/src/tty/fuchsia.rs b/src/tty/fuchsia.rs
index febb577..1dd632f 100644
--- a/src/tty/fuchsia.rs
+++ b/src/tty/fuchsia.rs
@@ -1,7 +1,5 @@
//! Fuchsia specific definitions
-use std::io::{self, Read, Stdout, Write};
-use std::mem;
-use std::sync::atomic;
+use std::io::{self, Read, Write};
use libc;
use unicode_segmentation::UnicodeSegmentation;
use utf8parse::{Parser, Receiver};
@@ -83,7 +81,7 @@
pub struct FuchsiaRawReader {
stdin: StdinRaw,
- timeout_ms: i32,
+ _timeout_ms_unused: i32,
buf: [u8; 1],
parser: Parser,
receiver: Utf8,
@@ -93,7 +91,7 @@
pub fn new(config: &Config) -> Result<FuchsiaRawReader> {
Ok(FuchsiaRawReader {
stdin: StdinRaw {},
- timeout_ms: config.keyseq_timeout(),
+ _timeout_ms_unused: config.keyseq_timeout(),
buf: [0; 1],
parser: Parser::new(),
receiver: Utf8 {
@@ -494,10 +492,10 @@
// TODO properly set raw mode, handle escape key timeouts
impl RawReader for FuchsiaRawReader {
- fn next_key(&mut self, single_esc_abort: bool) -> Result<KeyPress> {
+ fn next_key(&mut self, _single_esc_abort: bool) -> Result<KeyPress> {
let c = try!(self.next_char());
- let mut key = keys::char_to_key_press(c);
+ let key = keys::char_to_key_press(c);
if key == KeyPress::Esc {
return self.escape_sequence();
}