()
| 128 | |
| 129 | #[cfg(feature = "eyre")] |
| 130 | fn install_eyre_hook() { |
| 131 | use std::sync::Once; |
| 132 | |
| 133 | static ONCE: Once = Once::new(); |
| 134 | |
| 135 | ONCE.call_once(|| { |
| 136 | eyre::set_hook(Box::new(eyre::DefaultHandler::default_with)).expect("Could not set hook"); |
| 137 | }); |
| 138 | } |
| 139 | |
| 140 | #[test] |
| 141 | #[cfg(feature = "eyre")] |
no test coverage detected