Skip to content

Commit

Permalink
main: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
euank committed Aug 4, 2018
1 parent b88e789 commit 74959d5
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,24 @@ fn main() {
// This should be replaced by a normal enum + const "as_str" for each variant once rust stable
// supports const functions.
macro_rules! SUBCOMMAND {
(Edit) => { "edit" };
(Import) => { "import" };
(Init) => { "init" };
(Jump) => { "jump" };
(View) => { "view" };
(Visit) => { "visit" };
(Edit) => {
"edit"
};
(Import) => {
"import"
};
(Init) => {
"init"
};
(Jump) => {
"jump"
};
(View) => {
"view"
};
(Visit) => {
"visit"
};
}

fn _main() -> PaziResult {
Expand Down Expand Up @@ -475,9 +487,7 @@ fn handle_print_frecency(cmd: &ArgMatches) -> PaziResult {
let mut frecency = load_frecency();

let matches = match cmd.value_of("dir_target") {
Some(to) => {
frecency.directory_matches(to)
}
Some(to) => frecency.directory_matches(to),
None => frecency.items_with_frecency(),
};

Expand Down

0 comments on commit 74959d5

Please sign in to comment.