Browse Source

chore: clippy

skoupidi 2 years ago
parent
commit
4e8e1ea0a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/runtime/vm_runtime.rs

+ 1 - 1
src/runtime/vm_runtime.rs

@@ -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.