Compare commits
1 Commits
b21e3ce71f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 41c615b03a |
12
src/csv.rs
12
src/csv.rs
@@ -52,15 +52,15 @@ impl Row {
|
||||
|
||||
fn make_checksum() -> 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!(
|
||||
"{}{}{}{}{}",
|
||||
base.chars().next().expect(expect),
|
||||
base.chars().nth(2).expect(expect),
|
||||
base.chars().nth(4).expect(expect),
|
||||
base.chars().nth(1).expect(expect),
|
||||
base.chars().nth(3).expect(expect)
|
||||
base.chars().next().expect(split_expect),
|
||||
base.chars().nth(2).expect(split_expect),
|
||||
base.chars().nth(4).expect(split_expect),
|
||||
base.chars().nth(1).expect(split_expect),
|
||||
base.chars().nth(3).expect(split_expect)
|
||||
)
|
||||
.repeat(2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user