mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
chore: clippy
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user