Commit f14ffe58 authored by Peter Goodspeed-Niklaus's avatar Peter Goodspeed-Niklaus
Browse files

fix more multi-From inference issues

parent 684038fd
Pipeline #101367 canceled with stages
in 4 minutes and 55 seconds
......@@ -798,9 +798,9 @@ mod tests {
impl Default for TestState {
fn default() -> Self {
let chain_a = ParaId::from(1);
let chain_b = ParaId::from(2);
let thread_a = ParaId::from(3);
let chain_a = ParaId::from(1_u32);
let chain_b = ParaId::from(2_u32);
let thread_a = ParaId::from(3_u32);
let chain_ids = vec![chain_a, chain_b, thread_a];
......
......@@ -915,21 +915,21 @@ mod tests {
let candidate_a = {
let mut c = CommittedCandidateReceipt::default();
c.descriptor.relay_parent = parent_hash;
c.descriptor.para_id = 1.into();
c.descriptor.para_id = 1_u32.into();
c
};
let candidate_b = {
let mut c = CommittedCandidateReceipt::default();
c.descriptor.relay_parent = parent_hash;
c.descriptor.para_id = 2.into();
c.descriptor.para_id = 2_u32.into();
c
};
let candidate_c = {
let mut c = CommittedCandidateReceipt::default();
c.descriptor.relay_parent = parent_hash;
c.descriptor.para_id = 3.into();
c.descriptor.para_id = 3_u32.into();
c
};
......@@ -1144,7 +1144,7 @@ mod tests {
let candidate = {
let mut c = CommittedCandidateReceipt::default();
c.descriptor.relay_parent = hash_c;
c.descriptor.para_id = 1.into();
c.descriptor.para_id = 1_u32.into();
c
};
let candidate_hash = candidate.hash();
......@@ -1279,7 +1279,7 @@ mod tests {
let candidate = {
let mut c = CommittedCandidateReceipt::default();
c.descriptor.relay_parent = hash_b;
c.descriptor.para_id = 1.into();
c.descriptor.para_id = 1_u32.into();
c
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment