1pub(crate) fn list_to_string<I, S>(list: I) -> String 2where 3 I: IntoIterator<Item = S>, 4 S: AsRef<str>, 5{ 6 list.into_iter() 7 .map(|a| a.as_ref().to_string()) 8 .collect::<Vec<String>>() 9 .join(",") 10}