@@ -207,7 +207,7 @@ pub async fn dns_basic() {
207207    let  mut  resolver = builder. build ( target,  opts) ; 
208208
209209    // Wait for schedule work to be called. 
210-     let  _ =  work_rx. recv ( ) . await . unwrap ( ) ; 
210+     work_rx. recv ( ) . await . unwrap ( ) ; 
211211    let  ( update_tx,  mut  update_rx)  = mpsc:: unbounded_channel ( ) ; 
212212    let  mut  channel_controller = FakeChannelController  { 
213213        update_tx, 
@@ -216,7 +216,7 @@ pub async fn dns_basic() {
216216    resolver. work ( & mut  channel_controller) ; 
217217    // A successful endpoint update should be received. 
218218    let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
219-     assert_eq ! ( update. endpoints. unwrap( ) . len( )  > 1 ,   true ) ; 
219+     assert ! ( update. endpoints. unwrap( ) . len( )  > 1 ) ; 
220220} 
221221
222222#[ tokio:: test]  
@@ -236,7 +236,7 @@ pub async fn invalid_target() {
236236    let  mut  resolver = builder. build ( target,  opts) ; 
237237
238238    // Wait for schedule work to be called. 
239-     let  _ =  work_rx. recv ( ) . await . unwrap ( ) ; 
239+     work_rx. recv ( ) . await . unwrap ( ) ; 
240240    let  ( update_tx,  mut  update_rx)  = mpsc:: unbounded_channel ( ) ; 
241241    let  mut  channel_controller = FakeChannelController  { 
242242        update_tx, 
@@ -245,14 +245,11 @@ pub async fn invalid_target() {
245245    resolver. work ( & mut  channel_controller) ; 
246246    // An error endpoint update should be received. 
247247    let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
248-     assert_eq ! ( 
249-         update
250-             . endpoints
251-             . err( ) 
252-             . unwrap( ) 
253-             . contains( & target. to_string( ) ) , 
254-         true 
255-     ) ; 
248+     assert ! ( update
249+         . endpoints
250+         . err( ) 
251+         . unwrap( ) 
252+         . contains( & target. to_string( ) ) ) ; 
256253} 
257254
258255#[ derive( Clone ) ]  
@@ -319,7 +316,7 @@ pub async fn dns_lookup_error() {
319316    let  mut  resolver = builder. build ( target,  opts) ; 
320317
321318    // Wait for schedule work to be called. 
322-     let  _ =  work_rx. recv ( ) . await . unwrap ( ) ; 
319+     work_rx. recv ( ) . await . unwrap ( ) ; 
323320    let  ( update_tx,  mut  update_rx)  = mpsc:: unbounded_channel ( ) ; 
324321    let  mut  channel_controller = FakeChannelController  { 
325322        update_tx, 
@@ -328,7 +325,7 @@ pub async fn dns_lookup_error() {
328325    resolver. work ( & mut  channel_controller) ; 
329326    // An error endpoint update should be received. 
330327    let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
331-     assert_eq ! ( update. endpoints. err( ) . unwrap( ) . contains( "test_error" ) ,   true ) ; 
328+     assert ! ( update. endpoints. err( ) . unwrap( ) . contains( "test_error" ) ) ; 
332329} 
333330
334331#[ tokio:: test]  
@@ -360,7 +357,7 @@ pub async fn dns_lookup_timeout() {
360357    let  mut  resolver = DnsResolver :: new ( Box :: new ( dns_client) ,  opts,  dns_opts) ; 
361358
362359    // Wait for schedule work to be called. 
363-     let  _ =  work_rx. recv ( ) . await . unwrap ( ) ; 
360+     work_rx. recv ( ) . await . unwrap ( ) ; 
364361    let  ( update_tx,  mut  update_rx)  = mpsc:: unbounded_channel ( ) ; 
365362    let  mut  channel_controller = FakeChannelController  { 
366363        update_tx, 
@@ -370,7 +367,7 @@ pub async fn dns_lookup_timeout() {
370367
371368    // An error endpoint update should be received. 
372369    let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
373-     assert_eq ! ( update. endpoints. err( ) . unwrap( ) . contains( "Timed out" ) ,   true ) ; 
370+     assert ! ( update. endpoints. err( ) . unwrap( ) . contains( "Timed out" ) ) ; 
374371} 
375372
376373#[ tokio:: test]  
@@ -398,7 +395,7 @@ pub async fn rate_limit() {
398395    let  mut  resolver = DnsResolver :: new ( dns_client,  opts,  dns_opts) ; 
399396
400397    // Wait for schedule work to be called. 
401-     let  event =  work_rx. recv ( ) . await . unwrap ( ) ; 
398+     work_rx. recv ( ) . await . unwrap ( ) ; 
402399    let  ( update_tx,  mut  update_rx)  = mpsc:: unbounded_channel ( ) ; 
403400    let  mut  channel_controller = FakeChannelController  { 
404401        update_tx, 
@@ -407,14 +404,14 @@ pub async fn rate_limit() {
407404    resolver. work ( & mut  channel_controller) ; 
408405    // A successful endpoint update should be received. 
409406    let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
410-     assert_eq ! ( update. endpoints. unwrap( ) . len( )  > 1 ,   true ) ; 
407+     assert ! ( update. endpoints. unwrap( ) . len( )  > 1 ) ; 
411408
412409    // Call resolve_now repeatedly, new updates should not be produced. 
413410    for  _ in  0 ..5  { 
414411        resolver. resolve_now ( ) ; 
415412        tokio:: select! { 
416413            _ = work_rx. recv( )  => { 
417-                 panic!( "Received unexpected work request from resolver: {:?}"  ,  event ) ; 
414+                 panic!( "Received unexpected work request from resolver"  ) ; 
418415            } 
419416            _ = tokio:: time:: sleep( DEFAULT_TEST_SHORT_TIMEOUT )  => { 
420417                println!( "No work requested from resolver." ) ; 
@@ -448,7 +445,7 @@ pub async fn re_resolution_after_success() {
448445    let  mut  resolver = DnsResolver :: new ( dns_client,  opts,  dns_opts) ; 
449446
450447    // Wait for schedule work to be called. 
451-     let  _ =  work_rx. recv ( ) . await . unwrap ( ) ; 
448+     work_rx. recv ( ) . await . unwrap ( ) ; 
452449    let  ( update_tx,  mut  update_rx)  = mpsc:: unbounded_channel ( ) ; 
453450    let  mut  channel_controller = FakeChannelController  { 
454451        update_tx, 
@@ -457,14 +454,14 @@ pub async fn re_resolution_after_success() {
457454    resolver. work ( & mut  channel_controller) ; 
458455    // A successful endpoint update should be received. 
459456    let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
460-     assert_eq ! ( update. endpoints. unwrap( ) . len( )  > 1 ,   true ) ; 
457+     assert ! ( update. endpoints. unwrap( ) . len( )  > 1 ) ; 
461458
462459    // Call resolve_now, a new update should be produced. 
463460    resolver. resolve_now ( ) ; 
464-     let  _ =  work_rx. recv ( ) . await . unwrap ( ) ; 
461+     work_rx. recv ( ) . await . unwrap ( ) ; 
465462    resolver. work ( & mut  channel_controller) ; 
466463    let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
467-     assert_eq ! ( update. endpoints. unwrap( ) . len( )  > 1 ,   true ) ; 
464+     assert ! ( update. endpoints. unwrap( ) . len( )  > 1 ) ; 
468465} 
469466
470467#[ tokio:: test]  
@@ -507,18 +504,18 @@ pub async fn backoff_on_error() {
507504    // As the channel returned an error to the resolver, the resolver will 
508505    // backoff and re-attempt resolution. 
509506    for  _ in  0 ..5  { 
510-         let  _ =  work_rx. recv ( ) . await . unwrap ( ) ; 
507+         work_rx. recv ( ) . await . unwrap ( ) ; 
511508        resolver. work ( & mut  channel_controller) ; 
512509        let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
513-         assert_eq ! ( update. endpoints. unwrap( ) . len( )  > 1 ,   true ) ; 
510+         assert ! ( update. endpoints. unwrap( ) . len( )  > 1 ) ; 
514511    } 
515512
516513    // This time the channel accepts the resolver update. 
517514    channel_controller. update_result  = Ok ( ( ) ) ; 
518-     let  _ =  work_rx. recv ( ) . await . unwrap ( ) ; 
515+     work_rx. recv ( ) . await . unwrap ( ) ; 
519516    resolver. work ( & mut  channel_controller) ; 
520517    let  update = update_rx. recv ( ) . await . unwrap ( ) ; 
521-     assert_eq ! ( update. endpoints. unwrap( ) . len( )  > 1 ,   true ) ; 
518+     assert ! ( update. endpoints. unwrap( ) . len( )  > 1 ) ; 
522519
523520    // Since the channel controller returns Ok(), the resolver will stop 
524521    // producing more updates. 
0 commit comments