Fix ping tracker Clippy warning
All checks were successful
CI / checks (push) Successful in 7m14s

This commit is contained in:
Alois 2026-07-28 22:57:08 +02:00
commit 6f673ba7f2
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24

View file

@ -30,10 +30,10 @@ impl PingTracker {
}
fn received(&mut self, id: u32) -> Option<Duration> {
if !self
if self
.pending
.as_ref()
.is_some_and(|(pending, _)| *pending == id)
.is_none_or(|(pending, _)| *pending != id)
{
return None;
}