1.78 clippies

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-05-06 14:34:51 +02:00
parent b1a3a452ac
commit 9f8a8a782d
3 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -149,7 +149,9 @@ impl Contract {
}
let hexadecimal_bytecode = hex::encode(self.build.bytecode);
combined_json_contract.bin = Some(hexadecimal_bytecode);
combined_json_contract.bin_runtime = combined_json_contract.bin.clone();
combined_json_contract
.bin_runtime
.clone_from(&combined_json_contract.bin);
combined_json_contract.factory_deps = Some(self.build.factory_dependencies);
@@ -55,7 +55,7 @@ where
format!("dup{offset}").as_str(),
)?;
*original = element.original.to_owned();
element.original.clone_into(original);
Ok(value)
}
@@ -84,8 +84,12 @@ where
let swap_value =
context.build_load(swap_pointer, format!("swap{offset}_swap_value").as_str())?;
context.evmla_mut().stack[height - 1].original = swap_element.original.to_owned();
context.evmla_mut().stack[height - offset - 1].original = top_element.original.to_owned();
swap_element
.original
.clone_into(&mut context.evmla_mut().stack[height - 1].original);
top_element
.original
.clone_into(&mut context.evmla_mut().stack[height - offset - 1].original);
context.build_store(top_pointer, swap_value)?;
context.build_store(swap_pointer, top_value)?;
@@ -968,7 +968,7 @@ impl Function {
)?;
if let Some(mut queue_element) = queue_element {
queue_element.stack = block_element.stack.to_owned();
block_element.stack.clone_into(&mut queue_element.stack);
queue.push(queue_element);
}