Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Nov 23, 2023
1 parent f61c82c commit c47c41c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vm/src/vm/runners/cairo_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1309,8 +1309,7 @@ impl CairoRunner {
dyn_layout,
&vm.get_public_memory_addresses()?,
vm.get_memory_segment_addresses()?,
&self
.relocated_trace
self.relocated_trace
.as_ref()
.ok_or(PublicInputError::EmptyTrace)?,
self.get_perm_range_check_limits(vm)
Expand Down Expand Up @@ -2604,7 +2603,7 @@ mod tests {
.segments
.relocate_segments()
.expect("Couldn't relocate after compute effective sizes");
assert_eq!(cairo_runner.relocate_memory(&mut vm, &rel_table), Ok(()));
assert_eq!(cairo_runner.relocate_memory(&vm, &rel_table), Ok(()));
assert_eq!(cairo_runner.relocated_memory[0], None);
assert_eq!(
cairo_runner.relocated_memory[1],
Expand Down Expand Up @@ -2710,7 +2709,7 @@ mod tests {
.segments
.relocate_segments()
.expect("Couldn't relocate after compute effective sizes");
assert_eq!(cairo_runner.relocate_memory(&mut vm, &rel_table), Ok(()));
assert_eq!(cairo_runner.relocate_memory(&vm, &rel_table), Ok(()));
assert_eq!(cairo_runner.relocated_memory[0], None);
assert_eq!(
cairo_runner.relocated_memory[1],
Expand Down

0 comments on commit c47c41c

Please sign in to comment.