From 7e30117c842fc97e6135312a978367efb8f2c51c Mon Sep 17 00:00:00 2001 From: doryan Date: Fri, 19 Jul 2024 23:37:24 +0400 Subject: [PATCH] fix(check): change method of check for an empty array --- src/controller/view_utils/input_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/view_utils/input_utils.rs b/src/controller/view_utils/input_utils.rs index 3157df7..f28ef1a 100644 --- a/src/controller/view_utils/input_utils.rs +++ b/src/controller/view_utils/input_utils.rs @@ -9,7 +9,7 @@ const ASCII_ZERO_CHAR_POSITION: u8 = 48; pub fn processing_input(input: &String) -> String { input .split_ascii_whitespace() - .filter(|&x| x != "") + .filter(|&x| x.is_empty()) .fold(String::new(), |c: String, n: &str| c + n) }