mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-02 22:03:07 +00:00
Use truncate instead of drain
This commit is contained in:
parent
3b767ca42f
commit
163053b8fa
@ -534,9 +534,7 @@ mod tests {
|
||||
}
|
||||
let b = a.inv_mod_xn(n);
|
||||
let mut m = &a * &b;
|
||||
if m.coeffs.len() > n {
|
||||
m.coeffs.drain(n..);
|
||||
}
|
||||
m.coeffs.truncate(n);
|
||||
m.trim();
|
||||
assert_eq!(
|
||||
m,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user