From 8ae178a5bbf99ad54ec335e5c3629ea05201ad86 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Mon, 11 Apr 2022 16:30:44 -0700 Subject: [PATCH] fix(no_std): remove use of `thread::panicking` Signed-off-by: Eliza Weisman --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 6c4d07b..4163c12 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -167,7 +167,7 @@ impl Core { fn close(&self) -> bool { test_println!("Core::close"); - if std::thread::panicking() { + if crate::util::panic::panicking() { return false; } test_dbg!(self.tail.fetch_or(self.closed, SeqCst) & self.closed == 0)