diff options
| author | a14m <[email protected]> | 2021-04-05 22:59:52 +0200 |
|---|---|---|
| committer | a14m <[email protected]> | 2021-04-05 22:59:52 +0200 |
| commit | ef2287c2de5be59d20da679443353abedf01fb1c (patch) | |
| tree | 5b2def346b520738f33beccbc25583ab5413cbac /CLI/rust | |
| parent | 882d9f66aa633a9e1c2a0a301be1a655790459de (diff) | |
Render the generate errors correctly in main
Diffstat (limited to 'CLI/rust')
| -rw-r--r-- | CLI/rust/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CLI/rust/src/main.rs b/CLI/rust/src/main.rs index 9bf0338..2136dcb 100644 --- a/CLI/rust/src/main.rs +++ b/CLI/rust/src/main.rs @@ -4,6 +4,6 @@ mod game_of_life; fn main() { let opts = game_of_life::opts::Opts::from(game_of_life::app().get_matches()) .unwrap_or_else(|e| e.exit()); - let universe = game_of_life::generate(opts); + let universe = game_of_life::generate(opts).unwrap_or_else(|e| e.exit()); println!("{:?}", universe); } |
