Skip to content

Commit

Permalink
Changed use to alloca #243
Browse files Browse the repository at this point in the history
  • Loading branch information
mrLSD committed Nov 30, 2023
1 parent dcffe29 commit e8354e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion interpreter/src/call_create.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Call and create trap handler.

#[cfg(not(feature = "std"))]
use crate::Vec;
use alloc::vec::Vec;

use crate::utils::{h256_to_u256, u256_to_usize};
use crate::{
Expand Down
2 changes: 1 addition & 1 deletion interpreter/src/runtime.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#[cfg(not(feature = "std"))]
use crate::Vec;
use alloc::vec::Vec;

use crate::{ExitError, Opcode};
use alloc::rc::Rc;
Expand Down
6 changes: 3 additions & 3 deletions src/standard/invoker/routines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ where
}

#[allow(clippy::type_complexity, clippy::too_many_arguments)]
pub fn make_enter_create_machine<S, G, H, R, Tr>(
config: &Config,
resolver: &R,
pub fn make_enter_create_machine<'config, 'resolver, S, G, H, R, Tr>(
config: &'config Config,
resolver: &'resolver R,
caller: H160,
init_code: Vec<u8>,
is_static: bool,
Expand Down

0 comments on commit e8354e9

Please sign in to comment.