This commit is contained in:
Simon Gardling 2022-05-04 13:16:58 -04:00
parent e04924f35c
commit a836b5d1a0

View File

@ -176,8 +176,14 @@ pub fn split_function_chars(chars: &[char]) -> Vec<String> {
data.push(buffer);
}
if data.len() == 1 {
if data[0].is_empty() {
return Vec::new();
}
}
data.iter()
.map(|e| e.iter().cloned().collect::<String>())
.map(|e| e.iter().map(|c| *c).collect::<String>())
.collect::<Vec<String>>()
}