Upgrade codec to 2.0 and bitvec to 0.20 (companion) (#2343)

* upgrade codec and bitvec

* "Update Substrate"

Co-authored-by: parity-processbot <>
This commit is contained in:
Guillaume Thiolliereandparity-processbot authored and GitHub committed 2021-01-29 14:35:45 +01:00
1 parent 6efeb1ee13
commit 29f12f3f48
44 files changed
+297 -272

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@ fn select_availability_bitfields(
for (idx, _) in cores.iter().enumerate().filter(|v| !v.1.is_occupied()) {
// Bit is set for an unoccupied core - invalid
if *bitfield.payload().0.get(idx).unwrap_or(&false) {
if *bitfield.payload().0.get(idx).as_deref().unwrap_or(&false) {
continue 'a
}
}