New clippy lints

This commit is contained in:
wborgeaud 2021-12-13 16:51:36 +01:00
parent 920d5995c7
commit 6863eea74e
2 changed files with 2 additions and 3 deletions

View File

@ -43,7 +43,7 @@ fn fft_dispatch<F: Field>(
} else {
Some(fft_root_table(input.len()))
};
let used_root_table = root_table.or_else(|| computed_root_table.as_ref()).unwrap();
let used_root_table = root_table.or(computed_root_table.as_ref()).unwrap();
fft_classic(input, zero_factor.unwrap_or(0), used_root_table)
}

View File

@ -128,8 +128,7 @@ impl<F: RichField + Extendable<D>, const D: usize> SimpleGenerator<F>
fn dependencies(&self) -> Vec<Target> {
self.input_ops
.iter()
.map(|op| vec![op.is_write.target, op.address, op.timestamp, op.value])
.flatten()
.flat_map(|op| vec![op.is_write.target, op.address, op.timestamp, op.value])
.collect()
}