MCPcopy Create free account
hub / github.com/clawshell/clawshell / toml_string_array

Function toml_string_array

src/onboard/config_render.rs:130–138  ·  view source on GitHub ↗
(values: &[String])

Source from the content-addressed store, hash-verified

128}
129
130fn toml_string_array(values: &[String]) -> String {
131 toml::Value::Array(
132 values
133 .iter()
134 .map(|value| toml::Value::String(value.to_string()))
135 .collect(),
136 )
137 .to_string()
138}
139
140#[cfg(test)]
141mod tests {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected