Skip to content

Commit

Permalink
chore: fmt and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0xurb committed Nov 8, 2024
1 parent 2ee2a8e commit 6dbc7be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/risc-v-handler/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub(crate) enum RiscVError {
impl<E> From<RiscVError> for EVMError<E> {
#[inline]
fn from(err: RiscVError) -> Self {
EVMError::Custom(err.to_string())
Self::Custom(err.to_string())
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/risc-v-handler/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
2 changes: 1 addition & 1 deletion crates/risc-v-handler/src/rvemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 6dbc7be

Please sign in to comment.