This commit is contained in:
sxyazi 2023-11-12 03:21:31 +08:00
parent cd6c380089
commit 37220d77e4
No known key found for this signature in database
2 changed files with 1 additions and 8 deletions

View file

@ -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

View file

@ -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)]