thedes_tui_core/panic/restore/
null.rs

1use super::PanicRestoreGuard;
2
3pub fn open() -> Box<dyn PanicRestoreGuard> {
4    Box::new(NullPanicRestoreGuard)
5}
6
7#[derive(Debug)]
8struct NullPanicRestoreGuard;
9
10impl PanicRestoreGuard for NullPanicRestoreGuard {
11    fn cancel(self: Box<Self>) {}
12}