mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 16:23:12 +00:00
New clippy lints
This commit is contained in:
parent
1d215d5d59
commit
073fe7a6d9
@ -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