Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Mar 1, 2023
1 parent 3ebf755 commit 4845ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hint_processor/builtin_hint_processor/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
hint_processor_definition::HintReference,
},
serde::deserialize_program::ApTracking,
types::relocatable::{MaybeRelocatable, Relocatable},
types::relocatable::MaybeRelocatable,
vm::{
errors::{hint_errors::HintError, vm_errors::VirtualMachineError},
vm_core::VirtualMachine,
Expand All @@ -32,7 +32,7 @@ pub fn set_add(
Err(VirtualMachineError::ValueNotPositive(Felt::new(elm_size)))?;
}
let elm = vm
.get_range(Relocatable::from(elm_ptr), elm_size)
.get_range(elm_ptr, elm_size)
.map_err(VirtualMachineError::Memory)?;

if set_ptr > set_end_ptr {
Expand All @@ -46,7 +46,7 @@ pub fn set_add(

for i in (0..range_limit).step_by(elm_size) {
let set_iter = vm
.get_range(Relocatable::from(set_ptr + i), elm_size)
.get_range(set_ptr + i, elm_size)
.map_err(VirtualMachineError::Memory)?;

if set_iter == elm {
Expand Down

0 comments on commit 4845ab7

Please sign in to comment.