diff options
Diffstat (limited to 'src/gui/question.rs')
-rw-r--r-- | src/gui/question.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs index 2060cb7..426daa9 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -203,7 +203,11 @@ pub fn ask<B: Backend>( fn is_correct(input: &str, responses: &[String]) -> bool { // Remove whitespaces - let input = input.split_whitespace().map(|word| word.trim()).collect::<Vec<&str>>().join(" "); + let input = input + .split_whitespace() + .map(|word| word.trim()) + .collect::<Vec<&str>>() + .join(" "); responses .iter() |