Skip to content

Commit

Permalink
Resolve clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryAstafyev committed Jul 18, 2023
1 parent 1cc83a7 commit cf5aab0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/apps/indexer/session/src/unbound/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl UnboundSession {
jobs.retain(|id, signal| {
let cancelled = signal.is_cancelled();
if cancelled {
UnboundSession::stopped(&progress, &mut uuids, id);
UnboundSession::stopped(&progress, &uuids, id);
}
!cancelled
});
Expand Down Expand Up @@ -89,7 +89,7 @@ impl UnboundSession {
});
for (id, signal) in jobs.iter() {
signal.confirmed().await;
UnboundSession::stopped(&progress, &mut uuids, id);
UnboundSession::stopped(&progress, &uuids, id);
}
jobs.clear();
if tx.send(()).is_err() {
Expand All @@ -99,7 +99,7 @@ impl UnboundSession {
}
API::Remove(id) => {
if jobs.remove(&id).is_some() {
UnboundSession::stopped(&progress, &mut uuids, &id);
UnboundSession::stopped(&progress, &uuids, &id);
}
}
}
Expand All @@ -120,7 +120,7 @@ impl UnboundSession {
progress.started(&alias, &uuid);
}

fn stopped(progress: &ProgressProviderAPI, uuids: &mut HashMap<u64, Uuid>, id: &u64) {
fn stopped(progress: &ProgressProviderAPI, uuids: &HashMap<u64, Uuid>, id: &u64) {
if let Some(uuid) = uuids.get(id) {
progress.stopped(uuid);
} else {
Expand Down

0 comments on commit cf5aab0

Please sign in to comment.