mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 07:13:08 +00:00
clippy suggestions
This commit is contained in:
parent
7415810f19
commit
a4e6c6ae90
@ -34,7 +34,7 @@ pub mod channel_indices {
|
||||
pub const NUM_CHANNELS: usize = channel_indices::GP.end;
|
||||
|
||||
/// Calculates `lv.stack_len_bounds_aux`. Note that this must be run after decode.
|
||||
pub fn generate<F: PrimeField64>(lv: &mut CpuColumnsView<F>) {
|
||||
pub fn generate<F: PrimeField64>(lv: &CpuColumnsView<F>) {
|
||||
let cycle_filter: F = COL_MAP.op.iter().map(|&col_i| lv[col_i]).sum();
|
||||
if cycle_filter != F::ZERO {
|
||||
assert!(lv.is_kernel_mode.to_canonical_u64() <= 1);
|
||||
|
||||
@ -281,7 +281,7 @@ fn try_perform_instruction<F: Field>(state: &mut GenerationState<F>) -> Result<(
|
||||
perform_op(state, op, row)
|
||||
}
|
||||
|
||||
fn log_kernel_instruction<F: Field>(state: &mut GenerationState<F>, op: Operation) {
|
||||
fn log_kernel_instruction<F: Field>(state: &GenerationState<F>, op: Operation) {
|
||||
// The logic below is a bit costly, so skip it if debug logs aren't enabled.
|
||||
if !log_enabled!(log::Level::Debug) {
|
||||
return;
|
||||
|
||||
@ -120,7 +120,7 @@ pub(crate) fn mem_read_gp_with_log_and_fill<F: Field>(
|
||||
pub(crate) fn mem_write_gp_log_and_fill<F: Field>(
|
||||
n: usize,
|
||||
address: MemoryAddress,
|
||||
state: &mut GenerationState<F>,
|
||||
state: &GenerationState<F>,
|
||||
row: &mut CpuColumnsView<F>,
|
||||
val: U256,
|
||||
) -> MemoryOp {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user