rename variable to make more sense

This commit is contained in:
2026-03-03 14:26:22 -06:00
parent b21e3ce71f
commit 41c615b03a

View File

@@ -52,15 +52,15 @@ impl Row {
fn make_checksum() -> String { fn make_checksum() -> String {
let base = rand::random_range(10000..99999).to_string(); let base = rand::random_range(10000..99999).to_string();
let expect = "a valid character in the base checksum"; let split_expect = "a valid character in the base checksum";
let split = format!( let split = format!(
"{}{}{}{}{}", "{}{}{}{}{}",
base.chars().next().expect(expect), base.chars().next().expect(split_expect),
base.chars().nth(2).expect(expect), base.chars().nth(2).expect(split_expect),
base.chars().nth(4).expect(expect), base.chars().nth(4).expect(split_expect),
base.chars().nth(1).expect(expect), base.chars().nth(1).expect(split_expect),
base.chars().nth(3).expect(expect) base.chars().nth(3).expect(split_expect)
) )
.repeat(2); .repeat(2);