From af3dadf2c1647acf66f7efd8e53f0b53c1701069 Mon Sep 17 00:00:00 2001 From: Jonathan Wang <31040440+jonathanpwang@users.noreply.github.com> Date: Mon, 30 Dec 2024 15:16:24 -0500 Subject: [PATCH] chore: silence clippy --- crates/vm/src/arch/segment.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/crates/vm/src/arch/segment.rs b/crates/vm/src/arch/segment.rs index b2c72fafd7..9c04347f03 100644 --- a/crates/vm/src/arch/segment.rs +++ b/crates/vm/src/arch/segment.rs @@ -53,7 +53,7 @@ impl> ExecutionSegment { program: Program, init_streams: Streams, initial_memory: Option>, - _fn_bounds: FnBounds, + #[allow(unused_variables)] fn_bounds: FnBounds, ) -> Self { let mut chip_complex = config.create_chip_complex().unwrap(); chip_complex.set_streams(init_streams); @@ -78,7 +78,7 @@ impl> ExecutionSegment { air_names, #[cfg(feature = "bench-metrics")] metrics: VmMetrics { - fn_bounds: _fn_bounds, + fn_bounds, ..Default::default() }, since_last_segment_check: 0, @@ -115,7 +115,8 @@ impl> ExecutionSegment { self.chip_complex.program_chip_mut().get_instruction(pc)?; tracing::trace!("pc: {pc:#x} | time: {timestamp} | {:?}", instruction); - let (_dsl_instr, trace) = debug_info.map_or( + #[allow(unused_variables)] + let (dsl_instr, trace) = debug_info.map_or( (None, None), |DebugInfo { dsl_instruction, @@ -154,14 +155,14 @@ impl> ExecutionSegment { #[cfg(feature = "bench-metrics")] self.metrics .cycle_tracker - .start(_dsl_instr.clone().unwrap_or("Default".to_string())) + .start(dsl_instr.clone().unwrap_or("Default".to_string())) } Some(SysPhantom::CtEnd) => { #[cfg(feature = "bench-metrics")] self.metrics .cycle_tracker - .end(_dsl_instr.clone().unwrap_or("Default".to_string())) + .end(dsl_instr.clone().unwrap_or("Default".to_string())) } _ => {} } @@ -182,7 +183,7 @@ impl> ExecutionSegment { }; #[cfg(feature = "bench-metrics")] - self.update_instruction_metrics(pc, opcode, _dsl_instr); + self.update_instruction_metrics(pc, opcode, dsl_instr); if self.should_segment() { self.chip_complex