mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
cd6c380089
commit
37220d77e4
2 changed files with 1 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ impl From<Metadata> 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)]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue