From 37220d77e4dbf044dd0043d9b1c0a04dee8cd4db Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sun, 12 Nov 2023 03:21:31 +0800 Subject: [PATCH] .. --- yazi-fm/src/panic.rs | 7 ------- yazi-shared/src/cha.rs | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/yazi-fm/src/panic.rs b/yazi-fm/src/panic.rs index ca68898a..dc870f6f 100644 --- a/yazi-fm/src/panic.rs +++ b/yazi-fm/src/panic.rs @@ -8,13 +8,6 @@ impl Panic { let hook = std::panic::take_hook(); std::panic::set_hook(Box::new(move |info| { - // TODO: remove this once https://github.com/rust-lang/rust/issues/108277 is fixed. - if let Some(&s) = info.payload().downcast_ref::<&str>() { - if s.contains("assertion failed: tv_nsec >= 0 && tv_nsec") { - return; - } - } - _ = Term::goodbye(|| { hook(info); true diff --git a/yazi-shared/src/cha.rs b/yazi-shared/src/cha.rs index 0393faf1..e15e6469 100644 --- a/yazi-shared/src/cha.rs +++ b/yazi-shared/src/cha.rs @@ -58,7 +58,7 @@ impl From for Cha { len: m.len(), accessed: m.accessed().ok(), // TODO: remove this once https://github.com/rust-lang/rust/issues/108277 is fixed. - created: std::panic::catch_unwind(|| m.created().ok()).ok().flatten(), + created: None, modified: m.modified().ok(), #[cfg(unix)]