declone and close the door (#12035)

* declone and close the door

* cargo fmt

* remove brackets
This commit is contained in:
Squirrel authored and GitHub committed 2022-08-15 19:38:36 +00:00
1 parent 9c2a2495fe
commit a68a80fbae
72 files changed
+344 -512

No files matched your search

+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![],
},