mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 16:23:12 +00:00
clippy suggestions
This commit is contained in:
parent
8af3b0feb4
commit
7415810f19
@ -210,7 +210,7 @@ fn bigint_to_columns<const N: usize>(num: &BigInt) -> [i64; N] {
|
|||||||
/// NB: `operation` can set the higher order elements in its result to
|
/// NB: `operation` can set the higher order elements in its result to
|
||||||
/// zero if they are not used.
|
/// zero if they are not used.
|
||||||
pub(crate) fn generate_modular_op<F: PrimeField64>(
|
pub(crate) fn generate_modular_op<F: PrimeField64>(
|
||||||
lv: &mut [F],
|
lv: &[F],
|
||||||
nv: &mut [F],
|
nv: &mut [F],
|
||||||
filter: usize,
|
filter: usize,
|
||||||
pol_input: [i64; 2 * N_LIMBS - 1],
|
pol_input: [i64; 2 * N_LIMBS - 1],
|
||||||
|
|||||||
@ -68,7 +68,7 @@ pub(crate) fn mem_read_with_log<F: Field>(
|
|||||||
pub(crate) fn mem_write_log<F: Field>(
|
pub(crate) fn mem_write_log<F: Field>(
|
||||||
channel: MemoryChannel,
|
channel: MemoryChannel,
|
||||||
address: MemoryAddress,
|
address: MemoryAddress,
|
||||||
state: &mut GenerationState<F>,
|
state: &GenerationState<F>,
|
||||||
val: U256,
|
val: U256,
|
||||||
) -> MemoryOp {
|
) -> MemoryOp {
|
||||||
MemoryOp::new(
|
MemoryOp::new(
|
||||||
@ -96,7 +96,7 @@ pub(crate) fn mem_read_code_with_log_and_fill<F: Field>(
|
|||||||
pub(crate) fn mem_read_gp_with_log_and_fill<F: Field>(
|
pub(crate) fn mem_read_gp_with_log_and_fill<F: Field>(
|
||||||
n: usize,
|
n: usize,
|
||||||
address: MemoryAddress,
|
address: MemoryAddress,
|
||||||
state: &mut GenerationState<F>,
|
state: &GenerationState<F>,
|
||||||
row: &mut CpuColumnsView<F>,
|
row: &mut CpuColumnsView<F>,
|
||||||
) -> (U256, MemoryOp) {
|
) -> (U256, MemoryOp) {
|
||||||
let (val, op) = mem_read_with_log(MemoryChannel::GeneralPurpose(n), address, state);
|
let (val, op) = mem_read_with_log(MemoryChannel::GeneralPurpose(n), address, state);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user