diff options
author | Akshay <[email protected]> | 2020-07-23 08:49:15 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-07-23 08:49:15 +0100 |
commit | b0b6c04a052955834f0603df79db7a0a517a9b9d (patch) | |
tree | 7b4bc347fc37601b1454562d74c5346bb3da4864 /src/main.rs | |
parent | 537e4f5ebe7404031f240233cbe9807df0d580d9 (diff) |
move duplicate check to command parsing block
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 050a296..5523073 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -58,9 +58,7 @@ fn main() { | |||
58 | ), | 58 | ), |
59 | } | 59 | } |
60 | } else if matches.is_present("list") { | 60 | } else if matches.is_present("list") { |
61 | let app = App::load_state(); | 61 | for h in App::load_state().list_habits() { |
62 | let _habit_names = app.list_habit(); | ||
63 | for h in _habit_names { | ||
64 | println!("{}", h); | 62 | println!("{}", h); |
65 | } | 63 | } |
66 | } else { | 64 | } else { |