diff --git a/src/controller/model_utils/hamming_code_seven_four.rs b/src/controller/model_utils/hamming_code_seven_four.rs index 59c4c53..85df18c 100644 --- a/src/controller/model_utils/hamming_code_seven_four.rs +++ b/src/controller/model_utils/hamming_code_seven_four.rs @@ -24,7 +24,7 @@ pub fn hamming(raw_input: String, mode: HammingMode) -> Result { let prepared_input: String = processing_input(&raw_input); let (first_condition, second_condition): (bool, bool) = - check_correct_binary_code(&raw_input, &prepared_input, length_of_code); + check_correct_binary_code(&prepared_input, length_of_code); if raw_input.is_empty() { Err("Введите код.".into())