fix vote_type_to_char (was always returning 0x01, even for PreCommit)
Thanks clippy:
warning: unreachable pattern
--> src/types/vote.rs:18:9
|
17 |         pre_vote => 0x01 as char,
| matches any value
18 |         pre_commit => 0x02 as char
|         ^^^^^^^^^^ unreachable pattern
|
@@ -14,8 +14,8 @@ enum VoteType {
fn vote_type_to_char(vt: VoteType) -> char {
match vt {
- pre_vote => 0x01 as char,
- pre_commit => 0x02 as char
+ VoteType::PreVote => 0x01 as char,
+ VoteType::PreCommit => 0x02 as char
}
}
