Skip to content

Commit

Permalink
Wrap options as u8
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsanchezq committed Oct 20, 2020
1 parent 0029b6e commit f82323f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jormungandr-lib/src/interfaces/vote/mod.rs
Expand Up @@ -373,7 +373,7 @@ impl From<chain_vote::TallyResult> for TallyResult {
// TODO: is it safe to unwrap here?
Self {
results: this.votes.iter().map(|w| w.unwrap().into()).collect(),
options: this.options,
options: (this.options.start as u8..this.options.end as u8),
}
}
}
Expand Down

0 comments on commit f82323f

Please sign in to comment.