From b367d969f61985455642c013a62cae149612428a Mon Sep 17 00:00:00 2001 From: FrancoGiachetta Date: Fri, 15 Nov 2024 17:33:51 -0300 Subject: [PATCH] clippy --- vm/src/hint_processor/cairo_1_hint_processor/circuit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/src/hint_processor/cairo_1_hint_processor/circuit.rs b/vm/src/hint_processor/cairo_1_hint_processor/circuit.rs index 05d5b25aed..1b23a7f0e3 100644 --- a/vm/src/hint_processor/cairo_1_hint_processor/circuit.rs +++ b/vm/src/hint_processor/cairo_1_hint_processor/circuit.rs @@ -44,7 +44,7 @@ impl Circuit<'_> { fn read_circuit_value(&mut self, offset: Relocatable) -> Result, MemoryError> { let value_ptr = self.get_value_ptr(offset)?; - Ok(read_circuit_value(self.vm, value_ptr)?) + read_circuit_value(self.vm, value_ptr) } fn write_add_mod_value(&mut self, offset: usize, value: BigUint) -> Result<(), MemoryError> { @@ -71,7 +71,7 @@ impl Circuit<'_> { } fn get_value_ptr(&self, address: Relocatable) -> Result { - (self.values_ptr + self.vm.get_integer(address)?.as_ref()).map_err(|e| MemoryError::Math(e)) + (self.values_ptr + self.vm.get_integer(address)?.as_ref()).map_err(MemoryError::Math) } }