mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
3.3.1 replace try_from with from
This commit is contained in:
parent
d929a8d96e
commit
d72c4ca4f7
1 changed files with 2 additions and 2 deletions
|
@ -140,9 +140,9 @@ pub fn lagrange<F: PrimeField>(i: u16, included: &[u16]) -> F {
|
|||
continue;
|
||||
}
|
||||
|
||||
let share = F::from(u64::try_from(*l).unwrap());
|
||||
let share = F::from(u64::from(*l));
|
||||
num *= share;
|
||||
denom *= share - F::from(u64::try_from(i).unwrap());
|
||||
denom *= share - F::from(u64::from(i));
|
||||
}
|
||||
|
||||
// Safe as this will only be 0 if we're part of the above loop
|
||||
|
|
Loading…
Reference in a new issue