diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-12-04 12:00:13 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-12-04 12:00:13 -0500 |
commit | 160f04894fea3fe47d1ce6231102aa52085bb4ef (patch) | |
tree | 516e97b36c994bdae8e8666ec1441c087bed9608 /src | |
parent | 0473df1ef5721143941fb7f883e22b17292b35bb (diff) |
Simplify code.
Instead of `Ok(n) if n == 0` we can just write `Ok(0)`.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 2bf1cf02..1ccbdb30 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,7 +64,7 @@ pub type Result<T> = result::Result<T, Box<Error + Send + Sync>>; fn main() { match Args::parse().map(Arc::new).and_then(run) { - Ok(count) if count == 0 => process::exit(1), + Ok(0) => process::exit(1), Ok(_) => process::exit(0), Err(err) => { eprintln!("{}", err); |