fix: explicitly define mds diff type (#196)

* fix: explicitly define mds diff type

* rm paren
This commit is contained in:
dante 2023-08-26 02:45:05 +01:00 committed by GitHub
parent 0f000478f4
commit fe71cd4647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ pub(super) fn generate_mds<F: FromUniformBytes<64> + Ord, const T: usize>(
acc
} else {
// We can invert freely; by construction, the elements of xs are distinct.
acc * (x - x_m) * (x_j - x_m).invert().unwrap()
let diff: F = x_j - *x_m;
acc * (x - x_m) * diff.invert().unwrap()
}
})
};