mirror of https://github.com/zcash/halo2.git
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:
parent
eb74bf6ccb
commit
1613445cdb
|
@ -418,9 +418,9 @@ mod tests {
|
||||||
for _ in 0..10 {
|
for _ in 0..10 {
|
||||||
let word: u16 = rng.gen();
|
let word: u16 = rng.gen();
|
||||||
add_row(
|
add_row(
|
||||||
F::from(get_tag(word).into()),
|
F::from(u64::from(get_tag(word))),
|
||||||
F::from(word.into()),
|
F::from(u64::from(word)),
|
||||||
F::from(interleave_u16_with_zeros(word).into()),
|
F::from(u64::from(interleave_u16_with_zeros(word))),
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue