Fix compilation with rustc 1.57.0

The type inference algorithm seems to have been simplified,
meaning that the combination of T::from(x.into()) doesn't work anymore.

In any case, the code was also incomprehensible to a human, as it's not clear
by which "route" it does the transformation. It took me a few minutes to
figure out it's a `u64`.
This commit is contained in:
Las Safin 2022-01-20 16:24:28 +00:00
parent eb74bf6ccb
commit 1613445cdb
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
1 changed files with 3 additions and 3 deletions

View File

@ -418,9 +418,9 @@ mod tests {
for _ in 0..10 {
let word: u16 = rng.gen();
add_row(
F::from(get_tag(word).into()),
F::from(word.into()),
F::from(interleave_u16_with_zeros(word).into()),
F::from(u64::from(get_tag(word))),
F::from(u64::from(word)),
F::from(u64::from(interleave_u16_with_zeros(word))),
)?;
}