Fix Clippy
This commit is contained in:
parent
00f80b4355
commit
cd2c209a1c
3 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue