Fix cargo.toml (#7645)

* fix cargo.toml

* update arrayvec
This commit is contained in:
Xiliang Chen
2023-08-21 08:49:29 +12:00
committed by GitHub
parent 85115402ac
commit d046324178
4 changed files with 409 additions and 451 deletions
@@ -17,7 +17,7 @@ polkadot-node-subsystem = {path = "../../subsystem" }
polkadot-node-primitives = { path = "../../primitives" }
polkadot-node-subsystem-util = { path = "../../subsystem-util" }
polkadot-node-network-protocol = { path = "../../network/protocol" }
arrayvec = "0.5.2"
arrayvec = "0.7.4"
indexmap = "1.9.1"
parity-scale-codec = { version = "3.6.1", default-features = false, features = ["derive"] }
thiserror = "1.0.31"
@@ -160,8 +160,8 @@ impl RecentOutdatedHeads {
/// via other means.
#[derive(Default)]
struct VcPerPeerTracker {
local_observed: arrayvec::ArrayVec<[CandidateHash; VC_THRESHOLD]>,
remote_observed: arrayvec::ArrayVec<[CandidateHash; VC_THRESHOLD]>,
local_observed: arrayvec::ArrayVec<CandidateHash, VC_THRESHOLD>,
remote_observed: arrayvec::ArrayVec<CandidateHash, VC_THRESHOLD>,
}
impl VcPerPeerTracker {
@@ -193,7 +193,7 @@ impl VcPerPeerTracker {
}
fn note_hash(
observed: &mut arrayvec::ArrayVec<[CandidateHash; VC_THRESHOLD]>,
observed: &mut arrayvec::ArrayVec<CandidateHash, VC_THRESHOLD>,
h: CandidateHash,
) -> bool {
if observed.contains(&h) {