mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-12-27 11:32:44 +00:00
Forcibly disable backtraces (#130)
This commit is contained in:
parent
418b82524b
commit
eeaf8af202
@ -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>() {
|
||||
|
Loading…
Reference in New Issue
Block a user