MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / clean

Method clean

atomic-canonical/src/render.rs:245–250  ·  view source on GitHub ↗
(label: &str)

Source from the content-addressed store, hash-verified

243
244 fn render(&self) -> String {
245 fn clean(label: &str) -> String {
246 label
247 .chars()
248 .map(|c| if c.is_control() { ' ' } else { c })
249 .collect()
250 }
251 let mut out = format!("{}\n", clean(&self.label));
252 let mut pending: Vec<_> = self
253 .children

Callers 1

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected