feat(fn): remove redundant arguments

This commit is contained in:
doryan 2024-08-15 23:15:39 +04:00
parent cd697b9f5d
commit 8e8cecd463

View File

@ -24,7 +24,7 @@ pub fn hamming(raw_input: String, mode: HammingMode) -> Result<String> {
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())