fix(check): change method of check for an empty array

This commit is contained in:
doryan 2024-07-19 23:37:24 +04:00
parent dbf7dab513
commit 7e30117c84

View File

@ -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)
}