chore: address clippy warnings

This commit is contained in:
Jared L
2026-01-21 06:32:10 +11:00
parent 5bc2863721
commit a91b01f9a2
4 changed files with 22 additions and 20 deletions

View File

@@ -73,11 +73,10 @@ impl crate::Service for Service {
continue;
};
if let Some((current_count, _)) = timer_handles.get(&user_id) {
if *current_count != count {
trace!(?user_id, count, current_count, "Skipping stale presence timer");
continue;
}
if let Some((current_count, _)) = timer_handles.get(&user_id)
&& *current_count != count {
trace!(?user_id, count, current_count, "Skipping stale presence timer");
continue;
}
timer_handles.remove(&user_id);