clippy
This commit is contained in:
@@ -981,7 +981,7 @@ impl JsonRpcRequestProcessor {
|
||||
return Ok(self
|
||||
.runtime
|
||||
.block_on(bigtable_ledger_storage.get_confirmed_blocks(start_slot, limit))
|
||||
.unwrap_or_else(|_| vec![]));
|
||||
.unwrap_or_default());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1247,7 +1247,7 @@ impl JsonRpcRequestProcessor {
|
||||
);
|
||||
self.blockstore
|
||||
.get_confirmed_signatures_for_address(pubkey, start_slot, end_slot)
|
||||
.unwrap_or_else(|_| vec![])
|
||||
.unwrap_or_default()
|
||||
} else {
|
||||
vec![]
|
||||
}
|
||||
|
Reference in New Issue
Block a user