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

Function location

libs/error-stack/src/fmt/hook.rs:512–514  ·  view source on GitHub ↗
(location: &Location<'static>, context: &mut HookContext<Location<'static>>)

Source from the content-addressed store, hash-verified

510 }
511
512 fn location(location: &Location<'static>, context: &mut HookContext<Location<'static>>) {
513 context.push_body(LocationAttachment::new(location, context.color_mode()).to_string());
514 }
515
516 #[cfg(feature = "backtrace")]
517 fn backtrace(backtrace: &Backtrace, context: &mut HookContext<Backtrace>) {

Callers

nothing calls this directly

Calls 2

push_bodyMethod · 0.80
color_modeMethod · 0.45

Tested by

no test coverage detected