summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNora <nora.widdecke@tu-bs.de>2019-02-24 23:32:29 +0100
committerNora <nora.widdecke@tu-bs.de>2019-02-24 23:32:29 +0100
commit31a286e6efe3769cee31bb1e27fff82b87fffdd3 (patch)
tree13b249907e8d164b8b3fd76cb2b62ebb3636b21d
parentb69cef6d1975c372d05ef82bdb39822bf9ef58f5 (diff)
cleanup
-rw-r--r--src/actions/cursor.rs1
-rw-r--r--src/bin/khaleesi.rs3
-rw-r--r--src/cli.rs11
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();
diff --git a/src/cli.rs b/src/cli.rs
index 06587e7..673662d 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -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