From 5b475e392217210d0ca4bf09ba0f131300cdccfd Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 4 Apr 2020 11:17:21 +0200 Subject: Edition 2018 --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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, } -fn handle_key(key: Key, st: &mut State) -> Option { +fn handle_key(key: Key, st: &mut State<'_>) -> Option { match key { // Quitting Key::Ctrl('c') | Key::Ctrl('d') => { -- cgit v1.2.3-70-g09d2