Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/vm/src/system/memory/adapter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl<F: Clone + Send + Sync> AccessAdapterInventory<F> {
tracing::debug!("Computed heights from memory adapters arena: {:?}", heights);
}

fn apply_overridden_heights(&mut self, heights: &mut [usize]) {
fn apply_overridden_heights(&self, heights: &mut [usize]) {
for (i, h) in heights.iter_mut().enumerate() {
if let Some(oh) = self.chips[i].overridden_trace_height() {
assert!(
Expand Down
2 changes: 1 addition & 1 deletion crates/vm/src/system/memory/online/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl BasicMemory {
}

#[inline(always)]
pub fn as_mut_ptr(&mut self) -> *mut u8 {
pub fn as_mut_ptr(&self) -> *mut u8 {
self.ptr.as_ptr()
}
}
Expand Down
2 changes: 1 addition & 1 deletion extensions/native/compiler/src/asm/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ impl<F: PrimeField32 + TwoAdicField, EF: ExtensionField<F> + TwoAdicField> AsmCo
self.basic_blocks.push(BasicBlock::new());
}

fn block_label(&mut self) -> F {
fn block_label(&self) -> F {
F::from_canonical_usize(self.basic_blocks.len() - 1)
}

Expand Down
2 changes: 1 addition & 1 deletion extensions/native/compiler/src/ir/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl<C: Config> Builder<C> {
}

/// Creates an array from a vector.
pub fn vec<V: MemVariable<C>>(&mut self, v: Vec<V>) -> Array<C, V> {
pub fn vec<V: MemVariable<C>>(&self, v: Vec<V>) -> Array<C, V> {
Array::Fixed(Rc::new(RefCell::new(
v.into_iter().map(|x| Some(x)).collect(),
)))
Expand Down