Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed Mar 4, 2022
1 parent b42dfb0 commit 236defd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/env/src/engine/on_chain/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl EnvInstance {
R: scale::Decode,
{
let mut scope = self.scoped_buffer();
let gas_limit = params.gas_limit().clone();
let gas_limit = *params.gas_limit();
let enc_callee = scope.take_encoded(params.callee());
let enc_transferred_value = scope.take_encoded(params.transferred_value());
let call_flags = params.call_flags();
Expand Down Expand Up @@ -490,7 +490,7 @@ impl TypedEnvBackend for EnvInstance {
Salt: AsRef<[u8]>,
{
let mut scoped = self.scoped_buffer();
let gas_limit = params.gas_limit().clone();
let gas_limit = params.gas_limit();
let enc_code_hash = scoped.take_encoded(params.code_hash());
let enc_endowment = scoped.take_encoded(params.endowment());
let enc_input = scoped.take_encoded(params.exec_input());
Expand Down

0 comments on commit 236defd

Please sign in to comment.