mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-04 16:27:07 +00:00
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:
1 parent
6efeb1ee13
commit
29f12f3f48
44 files changed
+297
-272
No files matched your search
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
bitvec = { version = "0.17.4", default-features = false, features = ["alloc"] }
|
||||
bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] }
|
||||
futures = "0.3.12"
|
||||
tracing = "0.1.22"
|
||||
tracing-futures = "0.2.4"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user