chore: clippy

This commit is contained in:
skoupidi
2024-02-23 15:33:08 +02:00
parent 0a51a11ed0
commit 4e8e1ea0a2

View File

@@ -363,7 +363,7 @@ impl Runtime {
// Move the contract's return data into `retdata`.
let env_mut = self.ctx.as_mut(&mut self.store);
env_mut.contract_section = ContractSection::Null;
let retdata = env_mut.contract_return_data.take().unwrap_or_else(|| Vec::new());
let retdata = env_mut.contract_return_data.take().unwrap_or_default();
// Determine the return value of the contract call. If `ret` is empty,
// assumed that the contract call was successful.