From 9f22cc72c3f7a1ad01e7b410cf7a0f4df265d760 Mon Sep 17 00:00:00 2001 From: Nicholas Ward Date: Fri, 17 Jun 2022 11:11:33 -0700 Subject: [PATCH] allow 'unused' functions --- evm/src/cpu/columns.rs | 2 ++ evm/src/memory/registers.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/evm/src/cpu/columns.rs b/evm/src/cpu/columns.rs index 31e25884..811a2841 100644 --- a/evm/src/cpu/columns.rs +++ b/evm/src/cpu/columns.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use std::ops::Range; /// Filter. 1 if the row is part of bootstrapping the kernel code, 0 otherwise. diff --git a/evm/src/memory/registers.rs b/evm/src/memory/registers.rs index b89a9692..2e458cfb 100644 --- a/evm/src/memory/registers.rs +++ b/evm/src/memory/registers.rs @@ -48,6 +48,7 @@ pub(crate) const COUNTER_PERMUTED: usize = RANGE_CHECK_PERMUTED + 1; // Flags to indicate if this operation corresponds to the `i`th memory op in a certain row of the // CPU table. const IS_MEMOP_START: usize = COUNTER_PERMUTED + 1; +#[allow(dead_code)] pub(crate) const fn is_memop(i: usize) -> usize { debug_assert!(i < NUM_MEMORY_OPS); IS_MEMOP_START + i