Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/span/src/map.rs')
| -rw-r--r-- | crates/span/src/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/span/src/map.rs b/crates/span/src/map.rs index 75a1b0029c..dc7d471aa0 100644 --- a/crates/span/src/map.rs +++ b/crates/span/src/map.rs @@ -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)); } |