Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar-Pepper committed Dec 14, 2024
1 parent 1b53296 commit ca050ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions zingo-sync/src/scan/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,8 @@ where
if let Some(worker) = self.idle_worker() {
if let Some(scan_task) = sync::state::create_scan_task(wallet).unwrap() {
worker.add_scan_task(scan_task).unwrap();
} else {
if wallet.get_sync_state().unwrap().scan_complete() {
self.state.shutdown();
}
} else if wallet.get_sync_state().unwrap().scan_complete() {
self.state.shutdown();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion zingo-sync/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ async fn process_mempool_stream_response<W>(
W: SyncWallet + SyncBlocks + SyncTransactions + SyncNullifiers + SyncOutPoints,
{
// TODO: replace this unwrap_or_else with proper error handling
match mempool_stream_response.unwrap_or_else(|_| None) {
match mempool_stream_response.unwrap_or(None) {
Some(raw_transaction) => {
let block_height =
BlockHeight::from_u32(u32::try_from(raw_transaction.height).unwrap());
Expand Down

0 comments on commit ca050ae

Please sign in to comment.