Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Dec 5, 2023
1 parent db2fd26 commit e82165f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
//! * Finally, each machine on the call stack has the concept of [Color], which allows you to
//! implement account versioning, or specialized precompiles that invoke subcalls.

// #![deny(warnings)]
// #![forbid(unsafe_code, unused_variables)]
#![deny(warnings)]
#![forbid(unsafe_code, unused_variables)]
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;
Expand Down
4 changes: 2 additions & 2 deletions src/standard/invoker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ where
return Capture::Exit(Err(ExitException::CallTooDeep.into()));
}

let trap_data = match CallCreateTrapData::new_from(opcode, &mut machine.machine_mut()) {
let trap_data = match CallCreateTrapData::new_from(opcode, machine.machine_mut()) {
Ok(trap_data) => trap_data,
Err(err) => return Capture::Exit(Err(err)),
};
Expand Down Expand Up @@ -549,7 +549,7 @@ where
parent.machine_mut().state.merge(substate, strategy);
handler.pop_substate(strategy);

trap.feedback(result, retbuf, &mut parent.machine_mut())?;
trap.feedback(result, retbuf, parent.machine_mut())?;
parent.advance();

Ok(())
Expand Down
8 changes: 4 additions & 4 deletions src/standard/invoker/routines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ where
}

#[allow(clippy::type_complexity, clippy::too_many_arguments)]
pub fn enter_call_substack<'config, S, H, R, Tr>(
config: &'config Config,
pub fn enter_call_substack<S, H, R, Tr>(
config: &Config,
resolver: &R,
trap_data: CallTrapData,
code_address: H160,
Expand Down Expand Up @@ -118,8 +118,8 @@ where
}

#[allow(clippy::type_complexity, clippy::too_many_arguments)]
pub fn enter_create_substack<'config, S, H, R, Tr>(
config: &'config Config,
pub fn enter_create_substack<S, H, R, Tr>(
config: &Config,
resolver: &R,
code: Vec<u8>,
trap_data: CreateTrapData,
Expand Down

0 comments on commit e82165f

Please sign in to comment.