diff --git a/crates/risc-v-handler/src/error.rs b/crates/risc-v-handler/src/error.rs index 3d28c47..9faf710 100644 --- a/crates/risc-v-handler/src/error.rs +++ b/crates/risc-v-handler/src/error.rs @@ -15,7 +15,7 @@ pub(crate) enum RiscVError { impl From for EVMError { #[inline] fn from(err: RiscVError) -> Self { - EVMError::Custom(err.to_string()) + Self::Custom(err.to_string()) } } diff --git a/crates/risc-v-handler/src/lib.rs b/crates/risc-v-handler/src/lib.rs index d7c874a..5703a16 100644 --- a/crates/risc-v-handler/src/lib.rs +++ b/crates/risc-v-handler/src/lib.rs @@ -1,5 +1,5 @@ +//! Odyssey's RISC-V EVM handler #![cfg_attr(not(test), warn(unused_crate_dependencies))] -#![allow(missing_docs)] // TODO(0xurb) - docs use std::{cell::RefCell, rc::Rc, sync::Arc}; diff --git a/crates/risc-v-handler/src/rvemu.rs b/crates/risc-v-handler/src/rvemu.rs index d2aceb0..5bd8962 100644 --- a/crates/risc-v-handler/src/rvemu.rs +++ b/crates/risc-v-handler/src/rvemu.rs @@ -34,7 +34,7 @@ impl RVEmu { shared_memory: &mut SharedMemory, ) -> Result<(), RiscVError> { if let Some(destiny) = std::mem::take(&mut self.returned_data_destiny) { - let data = self.emu.cpu.bus.get_dram_slice(destiny.clone())?; + let data = self.emu.cpu.bus.get_dram_slice(destiny)?; data.copy_from_slice(shared_memory.slice(0, data.len())); tracing::trace!("Copied {} bytes to DRAM range", data.len()); }