mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 14:23:07 +00:00
New clippy lints
This commit is contained in:
parent
920d5995c7
commit
6863eea74e
@ -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)
|
||||
}
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user