Explorar o código

chore: clippy

skoupidi %!s(int64=2) %!d(string=hai) anos
pai
achega
4e8e1ea0a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.