Make backtrace var conditional

This commit is contained in:
Sasha Hilton 2018-02-13 16:46:10 +01:00
parent 67dabcdd8e
commit 17d39dffa9

View file

@ -355,7 +355,9 @@ impl Future for Main {
}
fn main() {
env::set_var("RUST_BACKTRACE", "full");
if env::var("RUST_BACKTRACE").is_err() {
env::set_var("RUST_BACKTRACE", "full")
}
let mut core = Core::new().unwrap();
let handle = core.handle();