@@ -383,7 +383,7 @@ mod tests {
383383 // This is the first "user" task that will issue proxy operations
384384 let count = requests_completed. clone ( ) ;
385385 let dest = destination. clone ( ) ;
386- let _ = spawn ( async move {
386+ spawn ( async move {
387387 let s = proxy. commit ( dest, rack_id, Epoch ( 1 ) ) . await . unwrap ( ) ;
388388
389389 // The first attempt should succeed
@@ -411,7 +411,7 @@ mod tests {
411411 // to the same node.
412412 let proxy = Proxy :: new ( tx) ;
413413 let count = requests_completed. clone ( ) ;
414- let _ = spawn ( async move {
414+ spawn ( async move {
415415 let s = proxy. status ( destination. clone ( ) ) . await . unwrap ( ) ;
416416 assert_matches ! ( s, NodeStatus { .. } ) ;
417417 let _ = count. fetch_add ( 1 , Ordering :: Relaxed ) ;
@@ -426,8 +426,7 @@ mod tests {
426426 let request_id_2 = tracker
427427 . ops
428428 . iter ( )
429- . filter ( |& r| r. request_id != request_id_1)
430- . next ( )
429+ . find ( |& r| r. request_id != request_id_1)
431430 . unwrap ( )
432431 . request_id ;
433432
@@ -487,7 +486,7 @@ mod tests {
487486 // This is the first "user" task that will issue proxy operations
488487 let count = requests_completed. clone ( ) ;
489488 let dest = destination. clone ( ) ;
490- let _ = spawn ( async move {
489+ spawn ( async move {
491490 let s = proxy. commit ( dest, rack_id, Epoch ( 1 ) ) . await . unwrap_err ( ) ;
492491 assert_matches ! ( s, ProxyError :: InvalidResponse ( _) ) ;
493492 let _ = count. fetch_add ( 1 , Ordering :: Relaxed ) ;
@@ -561,7 +560,7 @@ mod tests {
561560 // This is the first "user" task that will issue proxy operations
562561 let count = requests_completed. clone ( ) ;
563562 let dest = destination. clone ( ) ;
564- let _ = spawn ( async move {
563+ spawn ( async move {
565564 let s = proxy. commit ( dest, rack_id, Epoch ( 1 ) ) . await . unwrap_err ( ) ;
566565 assert_eq ! ( s, ProxyError :: Disconnected ) ;
567566 let _ = count. fetch_add ( 1 , Ordering :: Relaxed ) ;
@@ -584,7 +583,7 @@ mod tests {
584583 let proxy = Proxy :: new ( tx) ;
585584 let count = requests_completed. clone ( ) ;
586585 let dest = destination. clone ( ) ;
587- let _ = spawn ( async move {
586+ spawn ( async move {
588587 let s = proxy. status ( dest. clone ( ) ) . await . unwrap_err ( ) ;
589588 assert_eq ! ( s, ProxyError :: Disconnected ) ;
590589 let _ = count. fetch_add ( 1 , Ordering :: Relaxed ) ;
0 commit comments