Fix panic context

This commit is contained in:
Aleksey Kladov
2020-10-23 15:18:33 +02:00
parent 31db677a94
commit 1a74f25f90
2 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
use std::{cell::RefCell, panic, sync::Once};
pub fn enter(context: String) -> impl Drop {
pub fn enter(context: String) -> PanicContext {
static ONCE: Once = Once::new();
ONCE.call_once(PanicContext::init);
@@ -13,7 +13,7 @@ pub fn enter(context: String) -> impl Drop {
}
#[must_use]
struct PanicContext {
pub struct PanicContext {
_priv: (),
}