fixed mutability in decompose_value fn

This commit is contained in:
Janmajaya Mall
2022-07-14 03:58:51 +05:30
committed by parazyd
parent e51ba71306
commit 7a4016867a

View File

@@ -156,7 +156,7 @@ pub fn decompose_value<F: FieldExt + PrimeFieldBits, const WINDOW_SIZE: usize>(
bits.chunks_exact(WINDOW_SIZE)
.map(|x| {
let chunks = [false; WINDOW_SIZE];
let mut chunks = [false; WINDOW_SIZE];
chunks.copy_from_slice(x);
chunks
})