Fix Clippy

This commit is contained in:
Chayim Refael Friedman 2025-12-29 18:58:25 +02:00
parent 00f80b4355
commit cd2c209a1c
3 changed files with 3 additions and 3 deletions

View file

@ -804,7 +804,7 @@ impl Drop for AstIdMap {
// block on a receive
_ = receiver.recv();
// then drain the entire channel
while let Ok(_) = receiver.try_recv() {}
while receiver.try_recv().is_ok() {}
// and sleep for a bit
std::thread::sleep(std::time::Duration::from_millis(100));
}

View file

@ -168,7 +168,7 @@ impl Drop for SpanMap {
// block on a receive
_ = receiver.recv();
// then drain the entire channel
while let Ok(_) = receiver.try_recv() {}
while receiver.try_recv().is_ok() {}
// and sleep for a bit
std::thread::sleep(std::time::Duration::from_millis(100));
}

View file

@ -223,7 +223,7 @@ impl<T> Drop for Parse<T> {
// block on a receive
_ = receiver.recv();
// then drain the entire channel
while let Ok(_) = receiver.try_recv() {}
while receiver.try_recv().is_ok() {}
// and sleep for a bit
std::thread::sleep(std::time::Duration::from_millis(100));
}