Forcibly disable backtraces

This commit is contained in:
Ajeet D'Souza 2020-12-13 08:23:01 +05:30
parent 14b150c1f7
commit 05299e0b80
1 changed files with 4 additions and 0 deletions

View File

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