1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

fix warning

This commit is contained in:
schaeff 2019-11-11 20:36:14 +01:00
parent 802cbbafa0
commit 99b401e44c

View file

@ -1185,7 +1185,7 @@ impl<'ast, T: Field> Flattener<'ast, T> {
let ebytes_be = e.to_be_bytes();
// convert the bytes to bits, remove leading zeroes (we only need powers up to the highest non-zero bit)
let ebits_be: Vec<_> = ebytes_be
.into_iter()
.iter()
.flat_map(|byte| (0..8).rev().map(move |i| byte & (1 << i) != 0)) // byte to bit, big endian
.skip_while(|b| !b) // skip trailing false bits
.collect();