File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -804,7 +804,7 @@ impl Drop for AstIdMap {
804804 // block on a receive
805805 _ = receiver. recv ( ) ;
806806 // then drain the entire channel
807- while let Ok ( _ ) = receiver. try_recv ( ) { }
807+ while receiver. try_recv ( ) . is_ok ( ) { }
808808 // and sleep for a bit
809809 std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
810810 }
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ impl Drop for SpanMap {
168168 // block on a receive
169169 _ = receiver. recv ( ) ;
170170 // then drain the entire channel
171- while let Ok ( _ ) = receiver. try_recv ( ) { }
171+ while receiver. try_recv ( ) . is_ok ( ) { }
172172 // and sleep for a bit
173173 std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
174174 }
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ impl<T> Drop for Parse<T> {
223223 // block on a receive
224224 _ = receiver. recv ( ) ;
225225 // then drain the entire channel
226- while let Ok ( _ ) = receiver. try_recv ( ) { }
226+ while receiver. try_recv ( ) . is_ok ( ) { }
227227 // and sleep for a bit
228228 std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
229229 }
You can’t perform that action at this time.
0 commit comments