From 1a74f25f9026f152fdba6f85ec617c02205d98eb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 23 Oct 2020 15:18:33 +0200 Subject: Fix panic context --- crates/stdx/src/panic_context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/stdx') diff --git a/crates/stdx/src/panic_context.rs b/crates/stdx/src/panic_context.rs index fd232e0cc..8d51e20d3 100644 --- a/crates/stdx/src/panic_context.rs +++ b/crates/stdx/src/panic_context.rs @@ -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: (), } -- cgit v1.2.3