diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 5de9d56..6c8c723 100644 --- a/src/main.rs +++ b/src/main.rs @@ -283,9 +283,10 @@ fn run() -> MainResult<()> { .get_matches(); let mut api = Api::new(cache::FileCache::new()); - let build = match matches.is_present("chatlink") { - false => run_searching(&mut api, &matches)?, - true => run_chatlink(&mut api, &matches)?, + let build = if matches.is_present("chatlink") { + run_chatlink(&mut api, &matches)? + } else { + run_searching(&mut api, &matches)? }; println!("Chat code: {}", build.chatlink()); |