Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
resolve type inference failure caused by multiple From impls
Browse files Browse the repository at this point in the history
  • Loading branch information
coriolinus committed Jul 22, 2020
1 parent 00ef611 commit 7fc7780
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions availability-store/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ mod tests {
fn finalization_removes_unneeded() {
let relay_parent = [1; 32].into();

let para_id_1 = 5.into();
let para_id_2 = 6.into();
let para_id_1 = 5_u32.into();
let para_id_2 = 6_u32.into();

let mut candidate_1 = AbridgedCandidateReceipt::default();
let mut candidate_2 = AbridgedCandidateReceipt::default();
Expand Down Expand Up @@ -482,7 +482,7 @@ mod tests {
#[test]
fn erasure_coding() {
let relay_parent: Hash = [1; 32].into();
let para_id: ParaId = 5.into();
let para_id: ParaId = 5_u32.into();
let available_data = available_data(&[42; 8]);
let n_validators = 5;

Expand Down Expand Up @@ -555,11 +555,11 @@ mod tests {
let mut receipt_2 = AbridgedCandidateReceipt::default();


receipt_1.parachain_index = 1.into();
receipt_1.parachain_index = 1_u32.into();
receipt_1.commitments.erasure_root = erasure_root_1;
receipt_1.relay_parent = relay_parent;

receipt_2.parachain_index = 2.into();
receipt_2.parachain_index = 2_u32.into();
receipt_2.commitments.erasure_root = erasure_root_2;
receipt_2.relay_parent = relay_parent;

Expand Down

0 comments on commit 7fc7780

Please sign in to comment.