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

Function clean

atomic-cli/src/commands/change/tree.rs:52–57  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

50}
51
52fn clean(value: &str) -> String {
53 value
54 .chars()
55 .map(|c| if c.is_control() { ' ' } else { c })
56 .collect()
57}
58
59fn text_section(title: &str, text: &str) -> Tree {
60 let mut section = Tree::new(title);

Callers 1

run_git_diffMethod · 0.85

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected