MCPcopy Create free account
hub / github.com/JRMurr/tix / format_string_array

Function format_string_array

crates/cli/src/init.rs:832–838  ·  view source on GitHub ↗

Format a list of strings as a TOML inline array.

(items: &[String])

Source from the content-addressed store, hash-verified

830
831/// Format a list of strings as a TOML inline array.
832fn format_string_array(items: &[String]) -> String {
833 items
834 .iter()
835 .map(|s| format!("\"{s}\""))
836 .collect::<Vec<_>>()
837 .join(", ")
838}
839
840// ==============================================================================
841// Tests

Callers

nothing calls this directly

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected