diff --git a/crates/specs/src/etable.rs b/crates/specs/src/etable.rs index a5fc9ef51..bc9ca875c 100644 --- a/crates/specs/src/etable.rs +++ b/crates/specs/src/etable.rs @@ -61,7 +61,7 @@ impl EventTable { pub fn write(&self, path: &PathBuf) -> std::io::Result<()> { let mut fd = std::fs::File::create(path)?; - fd.write(&bincode::serialize(self).unwrap())?; + fd.write_all(&bincode::serialize(self).unwrap())?; Ok(()) } diff --git a/crates/zkwasm/src/loader/mod.rs b/crates/zkwasm/src/loader/mod.rs index 35e69b519..cd41b5f7a 100644 --- a/crates/zkwasm/src/loader/mod.rs +++ b/crates/zkwasm/src/loader/mod.rs @@ -28,8 +28,6 @@ use crate::circuits::ZkWasmCircuit; use crate::error::BuildingCircuitError; use crate::loader::err::Error; use crate::loader::err::PreCheckErr; -#[cfg(feature = "profile")] -use crate::profile::Profiler; use crate::runtime::host::host_env::HostEnv; use crate::runtime::monitor::WasmiMonitor;