clippy suggestions

This commit is contained in:
Nicholas Ward 2023-09-08 10:41:01 -07:00
parent 7415810f19
commit a4e6c6ae90
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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 {