summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index adaa058..3d06aec 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
-extern crate termion;
+use termion;
use termion::event::Key;
use termion::input::TermRead;
@@ -64,7 +64,7 @@ struct State<'a> {
command_map: &'a HashMap<String, (usize, Callback)>,
}
-fn handle_key(key: Key, st: &mut State) -> Option<bool> {
+fn handle_key(key: Key, st: &mut State<'_>) -> Option<bool> {
match key {
// Quitting
Key::Ctrl('c') | Key::Ctrl('d') => {