mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
fixed mutability in decompose_value fn
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user