diff options
author | Ben S <ogham@bsago.me> | 2015-06-21 12:52:53 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-06-21 12:52:53 +0100 |
commit | b235b64060dac383d5676981597619e5c0f4c7ee (patch) | |
tree | e706d40b10413517fbf66c9fa0fb7bc77194d48b /src/main.rs | |
parent | 488c7dc9c4a39d5e8ca262708167263a119e0a31 (diff) |
The feature flags wheel keeps on turning...
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 4ddb8c5..0750e68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ -#![feature(collections, convert, core, exit_status, fs_mode)] +#![feature(convert, fs_mode)] +#![feature(slice_extras, iter_arith, vec_resize)] extern crate ansi_term; extern crate datetime; @@ -20,6 +21,7 @@ extern crate git2; use std::env; use std::fs; use std::path::{Component, Path, PathBuf}; +use std::process; use std::sync::mpsc::channel; use threadpool::ThreadPool; @@ -197,7 +199,7 @@ fn main() { }, Err(e) => { println!("{}", e); - env::set_exit_status(e.error_code()); + process::exit(e.error_code()); }, }; } |