@@ -152,7 +152,7 @@ async fn test_pair_priority() -> Result<()> {
152152 local: host_local. clone( ) ,
153153 ..Default :: default ( )
154154 }
155- . to_string( ) ,
155+ . to_string( ) ,
156156 "Unexpected bestPair {best_pair} (expected remote: {remote})" ,
157157 ) ;
158158 } else {
@@ -662,7 +662,7 @@ async fn test_inbound_validity() -> Result<()> {
662662 } ,
663663 ..Default :: default ( )
664664 }
665- . new_candidate_host ( ) ?,
665+ . new_candidate_host ( ) ?,
666666 ) ;
667667
668668 //"Invalid Binding requests should be discarded"
@@ -1064,7 +1064,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
10641064 } ,
10651065 ..Default :: default ( )
10661066 }
1067- . new_candidate_host ( ) ?,
1067+ . new_candidate_host ( ) ?,
10681068 ) ;
10691069
10701070 let relay_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1080,7 +1080,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
10801080 rel_port : 43210 ,
10811081 ..Default :: default ( )
10821082 }
1083- . new_candidate_relay ( ) ?,
1083+ . new_candidate_relay ( ) ?,
10841084 ) ;
10851085
10861086 let srflx_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1095,7 +1095,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
10951095 rel_addr : "4.3.2.1" . to_owned ( ) ,
10961096 rel_port : 43212 ,
10971097 }
1098- . new_candidate_server_reflexive ( ) ?,
1098+ . new_candidate_server_reflexive ( ) ?,
10991099 ) ;
11001100
11011101 let prflx_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1110,7 +1110,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
11101110 rel_addr : "4.3.2.1" . to_owned ( ) ,
11111111 rel_port : 43211 ,
11121112 }
1113- . new_candidate_peer_reflexive ( ) ?,
1113+ . new_candidate_peer_reflexive ( ) ?,
11141114 ) ;
11151115
11161116 let host_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1124,7 +1124,7 @@ async fn test_candidate_pair_stats() -> Result<()> {
11241124 } ,
11251125 ..Default :: default ( )
11261126 }
1127- . new_candidate_host ( ) ?,
1127+ . new_candidate_host ( ) ?,
11281128 ) ;
11291129
11301130 for remote in & [
@@ -1226,7 +1226,7 @@ async fn test_local_candidate_stats() -> Result<()> {
12261226 } ,
12271227 ..Default :: default ( )
12281228 }
1229- . new_candidate_host ( ) ?,
1229+ . new_candidate_host ( ) ?,
12301230 ) ;
12311231
12321232 let srflx_local: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1241,7 +1241,7 @@ async fn test_local_candidate_stats() -> Result<()> {
12411241 rel_addr : "4.3.2.1" . to_owned ( ) ,
12421242 rel_port : 43212 ,
12431243 }
1244- . new_candidate_server_reflexive ( ) ?,
1244+ . new_candidate_server_reflexive ( ) ?,
12451245 ) ;
12461246
12471247 {
@@ -1319,7 +1319,7 @@ async fn test_remote_candidate_stats() -> Result<()> {
13191319 rel_port : 43210 ,
13201320 ..Default :: default ( )
13211321 }
1322- . new_candidate_relay ( ) ?,
1322+ . new_candidate_relay ( ) ?,
13231323 ) ;
13241324
13251325 let srflx_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1334,7 +1334,7 @@ async fn test_remote_candidate_stats() -> Result<()> {
13341334 rel_addr : "4.3.2.1" . to_owned ( ) ,
13351335 rel_port : 43212 ,
13361336 }
1337- . new_candidate_server_reflexive ( ) ?,
1337+ . new_candidate_server_reflexive ( ) ?,
13381338 ) ;
13391339
13401340 let prflx_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1349,7 +1349,7 @@ async fn test_remote_candidate_stats() -> Result<()> {
13491349 rel_addr : "4.3.2.1" . to_owned ( ) ,
13501350 rel_port : 43211 ,
13511351 }
1352- . new_candidate_peer_reflexive ( ) ?,
1352+ . new_candidate_peer_reflexive ( ) ?,
13531353 ) ;
13541354
13551355 let host_remote: Arc < dyn Candidate + Send + Sync > = Arc :: new (
@@ -1363,7 +1363,7 @@ async fn test_remote_candidate_stats() -> Result<()> {
13631363 } ,
13641364 ..Default :: default ( )
13651365 }
1366- . new_candidate_host ( ) ?,
1366+ . new_candidate_host ( ) ?,
13671367 ) ;
13681368
13691369 {
@@ -1465,7 +1465,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
14651465 nat_1to1_ip_candidate_type : CandidateType :: Host ,
14661466 ..Default :: default ( )
14671467 } )
1468- . await ?;
1468+ . await ?;
14691469 assert ! (
14701470 a. ext_ip_mapper. is_none( ) ,
14711471 "a.extIPMapper should be none by default"
@@ -1480,7 +1480,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
14801480 candidate_types : vec ! [ CandidateType :: Relay ] ,
14811481 ..Default :: default ( )
14821482 } )
1483- . await
1483+ . await
14841484 {
14851485 assert_eq ! (
14861486 Error :: ErrIneffectiveNat1to1IpMappingHost ,
@@ -1499,7 +1499,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
14991499 candidate_types : vec ! [ CandidateType :: Relay ] ,
15001500 ..Default :: default ( )
15011501 } )
1502- . await
1502+ . await
15031503 {
15041504 assert_eq ! (
15051505 Error :: ErrIneffectiveNat1to1IpMappingSrflx ,
@@ -1518,7 +1518,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
15181518 multicast_dns_mode : MulticastDnsMode :: QueryAndGather ,
15191519 ..Default :: default ( )
15201520 } )
1521- . await
1521+ . await
15221522 {
15231523 assert_eq ! (
15241524 Error :: ErrMulticastDnsWithNat1to1IpMapping ,
@@ -1535,7 +1535,7 @@ async fn test_init_ext_ip_mapping() -> Result<()> {
15351535 nat_1to1_ip_candidate_type : CandidateType :: Host ,
15361536 ..Default :: default ( )
15371537 } )
1538- . await
1538+ . await
15391539 {
15401540 assert_eq ! (
15411541 Error :: ErrInvalidNat1to1IpMapping ,
@@ -1599,8 +1599,8 @@ async fn test_agent_credentials() -> Result<()> {
15991599 let a = Agent :: new ( AgentConfig :: default ( ) ) . await ?;
16001600 {
16011601 let ufrag_pwd = a. internal . ufrag_pwd . lock ( ) . await ;
1602- assert ! ( ufrag_pwd. local_ufrag. as_bytes ( ) . len( ) * 8 >= 24 ) ;
1603- assert ! ( ufrag_pwd. local_pwd. as_bytes ( ) . len( ) * 8 >= 128 ) ;
1602+ assert ! ( ufrag_pwd. local_ufrag. len( ) * 8 >= 24 ) ;
1603+ assert ! ( ufrag_pwd. local_pwd. len( ) * 8 >= 128 ) ;
16041604 }
16051605 a. close ( ) . await ?;
16061606
@@ -1613,7 +1613,7 @@ async fn test_agent_credentials() -> Result<()> {
16131613 local_ufrag : "xx" . to_owned ( ) ,
16141614 ..Default :: default ( )
16151615 } )
1616- . await
1616+ . await
16171617 {
16181618 assert_eq ! ( Error :: ErrLocalUfragInsufficientBits , err) ;
16191619 } else {
@@ -1624,7 +1624,7 @@ async fn test_agent_credentials() -> Result<()> {
16241624 local_pwd : "xxxxxx" . to_owned ( ) ,
16251625 ..Default :: default ( )
16261626 } )
1627- . await
1627+ . await
16281628 {
16291629 assert_eq ! ( Error :: ErrLocalPwdInsufficientBits , err) ;
16301630 } else {
@@ -1824,7 +1824,7 @@ async fn test_agent_restart_one_side() -> Result<()> {
18241824 ..Default :: default ( )
18251825 } ) ,
18261826 )
1827- . await ?;
1827+ . await ?;
18281828
18291829 let ( cancel_tx, mut cancel_rx) = mpsc:: channel :: < ( ) > ( 1 ) ;
18301830 let cancel_tx = Arc :: new ( Mutex :: new ( Some ( cancel_tx) ) ) ;
@@ -1882,7 +1882,7 @@ async fn test_agent_restart_both_side() -> Result<()> {
18821882 ..Default :: default ( )
18831883 } ) ,
18841884 )
1885- . await ?;
1885+ . await ?;
18861886
18871887 let conn_afirst_candidates =
18881888 generate_candidate_address_strings ( agent_a. get_local_candidates ( ) . await ) ;
@@ -2138,7 +2138,7 @@ async fn test_lite_lifecycle() -> Result<()> {
21382138 multicast_dns_mode : MulticastDnsMode :: Disabled ,
21392139 ..Default :: default ( )
21402140 } )
2141- . await ?,
2141+ . await ?,
21422142 ) ;
21432143
21442144 a_agent. on_connection_state_change ( a_notifier) ;
@@ -2159,7 +2159,7 @@ async fn test_lite_lifecycle() -> Result<()> {
21592159 check_interval : Duration :: from_millis ( 500 ) ,
21602160 ..Default :: default ( )
21612161 } )
2162- . await ?,
2162+ . await ?,
21632163 ) ;
21642164
21652165 let ( b_connected_tx, mut b_connected_rx) = mpsc:: channel :: < ( ) > ( 1 ) ;
0 commit comments