Upgrade bitvec and parity-scale-codec (#947)

This commit is contained in:
Bastian Köcher
2020-03-30 13:08:15 +02:00
committed by GitHub
parent de1c97fb85
commit b4c79556f3
20 changed files with 39 additions and 29 deletions
+2 -2
View File
@@ -964,7 +964,7 @@ impl<T: Trait> Module<T> {
for (vote_index, (auth_index, _)) in candidate.validator_indices
.iter()
.enumerate()
.filter(|(_, bit)| *bit)
.filter(|(_, bit)| **bit)
.enumerate()
{
let validity_attestation = match candidate.validity_votes.get(vote_index) {
@@ -1200,7 +1200,7 @@ mod tests {
use sp_trie::NodeCodec;
use sp_runtime::{
impl_opaque_keys,
Perbill, curve::PiecewiseLinear, testing::{Header},
Perbill, curve::PiecewiseLinear, testing::Header,
traits::{
BlakeTwo256, IdentityLookup, SaturatedConversion,
OpaqueKeys,