declone and close the door (#12035)

* declone and close the door

* cargo fmt

* remove brackets
This commit is contained in:
Squirrel
2022-08-15 20:38:36 +01:00
committed by GitHub
parent 9c2a2495fe
commit a68a80fbae
72 changed files with 344 additions and 512 deletions
+3 -3
View File
@@ -139,7 +139,7 @@ impl TestExtension {
}
fn last_seen_inputs() -> (u32, u32, u32, u32) {
TEST_EXTENSION.with(|e| e.borrow().last_seen_inputs.clone())
TEST_EXTENSION.with(|e| e.borrow().last_seen_inputs)
}
}
@@ -3478,8 +3478,8 @@ fn set_code_hash() {
phase: Phase::Initialization,
event: Event::Contracts(crate::Event::ContractCodeUpdated {
contract: contract_addr.clone(),
new_code_hash: new_code_hash.clone(),
old_code_hash: code_hash.clone(),
new_code_hash,
old_code_hash: code_hash,
}),
topics: vec![],
},