(values: &[String])
| 128 | } |
| 129 | |
| 130 | fn 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)] |
| 141 | mod tests { |
no outgoing calls
no test coverage detected