diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actions/cursor.rs | 1 | ||||
-rw-r--r-- | src/bin/khaleesi.rs | 3 | ||||
-rw-r--r-- | src/cli.rs | 11 |
3 files changed, 1 insertions, 14 deletions
diff --git a/src/actions/cursor.rs b/src/actions/cursor.rs index 4ef951b..f881aef 100644 --- a/src/actions/cursor.rs +++ b/src/actions/cursor.rs @@ -18,7 +18,6 @@ pub fn do_cursor(args: &Cursor) -> KhResult<()> { match direction { CursorDirection::prev => return cursor_sequence_move(&Direction::Up), CursorDirection::next => return cursor_sequence_move(&Direction::Down), - &_ => {} } }; } diff --git a/src/bin/khaleesi.rs b/src/bin/khaleesi.rs index f950c21..29280c1 100644 --- a/src/bin/khaleesi.rs +++ b/src/bin/khaleesi.rs @@ -1,14 +1,13 @@ use log::error; use khaleesi::actions::*; +use khaleesi::cli; use khaleesi::config::Config; use khaleesi::KhResult; use std::env; -use std::path::PathBuf; use structopt::StructOpt; -use khaleesi::cli; fn main() { //let clap_args = CommandLine::clap().get_matches(); @@ -62,17 +62,6 @@ arg_enum! { } } -//impl std::str::FromStr for Direction{ -// type Err = String; -// fn from_str(s: &str) -> Result<Self, <Self as std::str::FromStr>::Err> { -// match s { -// "prev" => Ok(Direction::Prev), -// "next" => Ok(Direction::Next), -// &_ => Err("Expected 'prev' or 'next'".to_string()) -// } -// } -//} - #[derive(Debug, StructOpt)] pub struct Index { /// Rebuild index |