Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Nov 15, 2024
1 parent d70786f commit b367d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/src/hint_processor/cairo_1_hint_processor/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl Circuit<'_> {

fn read_circuit_value(&mut self, offset: Relocatable) -> Result<Option<BigUint>, 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> {
Expand All @@ -71,7 +71,7 @@ impl Circuit<'_> {
}

fn get_value_ptr(&self, address: Relocatable) -> Result<Relocatable, MemoryError> {
(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)
}
}

Expand Down

0 comments on commit b367d96

Please sign in to comment.