mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-06 15:53:10 +00:00
New clippy lints
This commit is contained in:
parent
920d5995c7
commit
6863eea74e
@ -43,7 +43,7 @@ fn fft_dispatch<F: Field>(
|
|||||||
} else {
|
} else {
|
||||||
Some(fft_root_table(input.len()))
|
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)
|
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> {
|
fn dependencies(&self) -> Vec<Target> {
|
||||||
self.input_ops
|
self.input_ops
|
||||||
.iter()
|
.iter()
|
||||||
.map(|op| vec![op.is_write.target, op.address, op.timestamp, op.value])
|
.flat_map(|op| vec![op.is_write.target, op.address, op.timestamp, op.value])
|
||||||
.flatten()
|
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user