mirror of
https://github.com/nushell/nushell.git
synced 2025-06-18 16:07:02 +02:00
This reverts commit 8004e8e2a008034883b9d26ffd81ba793e59aa1d.
This commit is contained in:
parent
f0cb2f38df
commit
633ebc7e43
@ -38,11 +38,6 @@ use std::{
|
|||||||
thread_local! { static IS_PERF: RefCell<bool> = RefCell::new(false) }
|
thread_local! { static IS_PERF: RefCell<bool> = RefCell::new(false) }
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
// Enable backtraces on panic to help diagnostics
|
|
||||||
if std::env::var("RUST_BACKTRACE").is_err() {
|
|
||||||
std::env::set_var("RUST_BACKTRACE", "1");
|
|
||||||
}
|
|
||||||
|
|
||||||
// miette::set_panic_hook();
|
// miette::set_panic_hook();
|
||||||
let miette_hook = std::panic::take_hook();
|
let miette_hook = std::panic::take_hook();
|
||||||
std::panic::set_hook(Box::new(move |x| {
|
std::panic::set_hook(Box::new(move |x| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user