diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/serialization.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/serialization.rs b/src/util/serialization.rs index fcb3062..cc2899f 100644 --- a/src/util/serialization.rs +++ b/src/util/serialization.rs @@ -1,5 +1,8 @@ pub fn line_to_words(line: &String) -> Vec<String> { - line.split("|").map(|w| w.trim().to_string()).filter(|w| !w.is_empty()).collect() + line.split("|") + .map(|w| w.trim().to_string()) + .filter(|w| !w.is_empty()) + .collect() } pub fn words_to_line(words: &Vec<String>) -> String { |