diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-02-24 23:32:29 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-02-24 23:32:29 +0100 |
commit | 31a286e6efe3769cee31bb1e27fff82b87fffdd3 (patch) | |
tree | 13b249907e8d164b8b3fd76cb2b62ebb3636b21d | |
parent | b69cef6d1975c372d05ef82bdb39822bf9ef58f5 (diff) |
cleanup
-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 |