Be specific about the BitVec generic arguments (#830)

* Be specific about the `BitVec` generic arguments

Currently we use the default generic arguments for `BitVec`. This means
we use `BigEndian` and `u8`. These default values are not stable, with
`0.17` of the `BitVec` crate this changes. To make sure we don't break
anything in the future, make sure we explictly set the generics.

* Update `spec_version`
This commit is contained in:
Bastian Köcher
2020-02-10 10:32:34 +01:00
committed by GitHub
parent c93b142692
commit eefbaffe4f
4 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -519,7 +519,11 @@ impl SharedTable {
}).collect();
validity_votes.sort_by(|(id1, _), (id2, _)| id1.cmp(id2));
let mut validator_indices = bitvec![0; validity_votes.last().map(|(i, _)| i + 1).unwrap_or_default()];
let mut validator_indices = bitvec![
bitvec::cursor::LittleEndian, u8;
0;
validity_votes.last().map(|(i, _)| i + 1).unwrap_or_default()
];
for (id, _) in &validity_votes {
validator_indices.set(*id, true);
}