refactor: fix some code style issues

This commit is contained in:
doryan 2024-07-29 01:19:15 +04:00
parent 09b05e7fa7
commit 7157ffd55f

View File

@ -41,7 +41,7 @@ pub fn hamming(raw_input: String, mode: HammingMode) -> Result<String, String> {
HammingMode::Decrypt => hamming_decrypt_data(&prepared_data, &mut data, length_of_code),
}
return Ok(data);
Ok(data)
}
}
@ -97,7 +97,7 @@ pub fn hamming_decrypt_data(data: &Vec<u8>, result_string: &mut String, length_o
.unwrap()
.0;
let uncorrect_code: String = from_vec_bits_to_string(&data_bits);
let uncorrect_code: String = from_vec_bits_to_string(data_bits);
let correct_code: String = from_vec_bits_to_string(
data_bits
.iter()