MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / text

Method text

xtask/src/main.rs:102–108  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

100#[cfg(feature = "template-runner")]
101impl TailCaptureHandle {
102 fn text(&self) -> String {
103 let Ok(state) = self.inner.lock() else {
104 return "<template output capture lock poisoned>".to_owned();
105 };
106 let bytes = state.bytes.iter().copied().collect::<Vec<_>>();
107 String::from_utf8_lossy(&bytes).into_owned()
108 }
109}
110
111#[cfg(feature = "template-runner")]

Callers 1

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected