File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl ChainId {
23
23
Self ( id)
24
24
}
25
25
26
- pub fn as_u32 ( self ) -> u32 {
26
+ pub fn to_u32 ( self ) -> u32 {
27
27
self . 0
28
28
}
29
29
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub async fn get_analytics(
27
27
query
28
28
. chains
29
29
. iter( )
30
- . map( |id| id. as_u32 ( ) . to_string( ) )
30
+ . map( |id| id. to_u32 ( ) . to_string( ) )
31
31
. collect:: <Vec <String >>( )
32
32
. join( "," )
33
33
) ) ;
Original file line number Diff line number Diff line change @@ -852,7 +852,7 @@ mod analytics_router_test {
852
852
os_name : None ,
853
853
chains : vec ! [ ] ,
854
854
} ;
855
- let query = serde_urlencoded :: to_string ( query) . expect ( "should parse query" ) ;
855
+ let query = serde_qs :: to_string ( & query) . expect ( "should parse query" ) ;
856
856
let req = Request :: builder ( )
857
857
. uri ( format ! ( "http://127.0.0.1/v5/analytics?{}" , query) )
858
858
. body ( Body :: empty ( ) )
@@ -1122,7 +1122,7 @@ mod analytics_router_test {
1122
1122
os_name : None ,
1123
1123
chains : vec ! [ ] ,
1124
1124
} ;
1125
- let base_query = serde_urlencoded :: to_string ( query) . expect ( "should parse query" ) ;
1125
+ let base_query = serde_qs :: to_string ( & query) . expect ( "should parse query" ) ;
1126
1126
1127
1127
insert_mock_analytics_for_auth_routes ( & app. pool , base_datehour) . await ;
1128
1128
You can’t perform that action at this time.
0 commit comments