MCPcopy Create free account
hub / github.com/hashintel/hash / install_eyre_hook

Function install_eyre_hook

libs/error-stack/tests/test_compatibility.rs:130–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129#[cfg(feature = "eyre")]
130fn 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")]

Callers 3

eyreFunction · 0.85
eyre_backtraceFunction · 0.85
eyre_outputFunction · 0.85

Calls 1

expectMethod · 0.45

Tested by

no test coverage detected