()
| 83 | |
| 84 | impl HookGuard { |
| 85 | fn new() -> Self { |
| 86 | static HOOK_LOCK: OnceLock<Mutex<()>> = OnceLock::new(); |
| 87 | let lock = HOOK_LOCK.get_or_init(|| Mutex::new(())).lock().unwrap(); |
| 88 | reset_struct_debug_hooks(); |
| 89 | event_log().lock().unwrap().clear(); |
| 90 | HookGuard { _lock: lock } |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | impl Drop for HookGuard { |
nothing calls this directly
no test coverage detected