diff --git a/barretenberg_wasm/src/lib.rs b/barretenberg_wasm/src/lib.rs index e0f1f20e..6f2cb917 100644 --- a/barretenberg_wasm/src/lib.rs +++ b/barretenberg_wasm/src/lib.rs @@ -12,6 +12,7 @@ pub mod scalar_mul; pub mod schnorr; pub use common::crs; +use std::cell::Cell; use wasmer::{ imports, Function, FunctionType, Instance, Memory, MemoryType, Module, Store, Type, Value, }; @@ -73,7 +74,7 @@ impl Barretenberg { #[cfg(not(feature = "js"))] return memory.view()[start as usize..end] .iter() - .map(|cell| cell.get()) + .map(|cell: &Cell| cell.get()) .collect(); }