Update ethereum-types to 0.5

This commit is contained in:
Michael Sproul
2019-03-04 17:19:25 +11:00
parent af8b8d519c
commit 6253167cac
19 changed files with 80 additions and 79 deletions

View File

@@ -210,7 +210,7 @@ where
trace!("Child vote length: {}", votes.len());
for (candidate, votes) in votes.iter() {
let candidate_bit: BitVec = BitVec::from_bytes(&candidate);
let candidate_bit: BitVec = BitVec::from_bytes(candidate.as_bytes());
// if the bitmasks don't match, exclude candidate
if !bitmask.iter().eq(candidate_bit.iter().take(bit)) {