()
| 49 | } |
| 50 | |
| 51 | pub(crate) fn latest() -> String { |
| 52 | ACTIVE |
| 53 | .lock() |
| 54 | .unwrap_or_else(|e| e.into_inner()) |
| 55 | .as_ref() |
| 56 | .map(|state| state.latest.clone()) |
| 57 | .unwrap_or_default() |
| 58 | } |
| 59 | |
| 60 | pub(crate) fn capture(kind: Kind, message: &str) -> bool { |
| 61 | let mut active = ACTIVE.lock().unwrap_or_else(|e| e.into_inner()); |
no test coverage detected