@@ -167,7 +167,7 @@ fn stress() {
167167 hits. fetch_add ( 1 , SeqCst ) ;
168168 }
169169
170- while let Some ( _ ) = w2. pop ( ) {
170+ while w2. pop ( ) . is_some ( ) {
171171 hits. fetch_add ( 1 , SeqCst ) ;
172172 }
173173 }
@@ -178,7 +178,7 @@ fn stress() {
178178 let mut expected = 0 ;
179179 while expected < COUNT {
180180 if rng. gen_range ( 0 ..3 ) == 0 {
181- while let Some ( _ ) = w. pop ( ) {
181+ while w. pop ( ) . is_some ( ) {
182182 hits. fetch_add ( 1 , SeqCst ) ;
183183 }
184184 } else {
@@ -188,7 +188,7 @@ fn stress() {
188188 }
189189
190190 while hits. load ( SeqCst ) < COUNT {
191- while let Some ( _ ) = w. pop ( ) {
191+ while w. pop ( ) . is_some ( ) {
192192 hits. fetch_add ( 1 , SeqCst ) ;
193193 }
194194 }
@@ -227,7 +227,7 @@ fn no_starvation() {
227227 hits. fetch_add ( 1 , SeqCst ) ;
228228 }
229229
230- while let Some ( _ ) = w2. pop ( ) {
230+ while w2. pop ( ) . is_some ( ) {
231231 hits. fetch_add ( 1 , SeqCst ) ;
232232 }
233233 }
@@ -239,7 +239,7 @@ fn no_starvation() {
239239 loop {
240240 for i in 0 ..rng. gen_range ( 0 ..COUNT ) {
241241 if rng. gen_range ( 0 ..3 ) == 0 && my_hits == 0 {
242- while let Some ( _ ) = w. pop ( ) {
242+ while w. pop ( ) . is_some ( ) {
243243 my_hits += 1 ;
244244 }
245245 } else {
@@ -300,7 +300,7 @@ fn destructors() {
300300 remaining. fetch_sub ( 1 , SeqCst ) ;
301301 }
302302
303- while let Some ( _ ) = w2. pop ( ) {
303+ while w2. pop ( ) . is_some ( ) {
304304 cnt += 1 ;
305305 remaining. fetch_sub ( 1 , SeqCst ) ;
306306 }
@@ -309,7 +309,7 @@ fn destructors() {
309309 }
310310
311311 for _ in 0 ..STEPS {
312- if let Some ( _ ) = w. pop ( ) {
312+ if w. pop ( ) . is_some ( ) {
313313 remaining. fetch_sub ( 1 , SeqCst ) ;
314314 }
315315 }
0 commit comments