Forcibly disable backtraces (#130)

This commit is contained in:
Ajeet D'Souza 2020-12-13 11:15:01 +05:30 committed by GitHub
parent 418b82524b
commit eeaf8af202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,9 +13,14 @@ use crate::error::SilentExit;
use anyhow::Result;
use clap::Clap;
use std::env;
use std::process;
pub fn main() -> Result<()> {
// Forcibly disable backtraces.
env::remove_var("RUST_LIB_BACKTRACE");
env::remove_var("RUST_BACKTRACE");
App::parse()
.run()
.map_err(|e| match e.downcast::<SilentExit>() {