@@ -87,7 +87,7 @@ impl Client {
8787 let json_indexes = request :: < ( ) , Vec < Value > > (
8888 & format ! ( "{}/indexes" , self . host) ,
8989 & self . api_key ,
90- Method :: Get ,
90+ Method :: Get ( ( ) ) ,
9191 200 ,
9292 )
9393 . await ?;
@@ -148,7 +148,7 @@ impl Client {
148148 request :: < ( ) , Value > (
149149 & format ! ( "{}/indexes/{}" , self . host, uid. as_ref( ) ) ,
150150 & self . api_key ,
151- Method :: Get ,
151+ Method :: Get ( ( ) ) ,
152152 200 ,
153153 )
154154 . await
@@ -248,10 +248,10 @@ impl Client {
248248 /// # });
249249 /// ```
250250 pub async fn get_stats ( & self ) -> Result < ClientStats , Error > {
251- request :: < serde_json :: Value , ClientStats > (
251+ request :: < ( ) , ClientStats > (
252252 & format ! ( "{}/stats" , self . host) ,
253253 & self . api_key ,
254- Method :: Get ,
254+ Method :: Get ( ( ) ) ,
255255 200 ,
256256 )
257257 . await
@@ -274,10 +274,10 @@ impl Client {
274274 /// # });
275275 /// ```
276276 pub async fn health ( & self ) -> Result < Health , Error > {
277- request :: < serde_json :: Value , Health > (
277+ request :: < ( ) , Health > (
278278 & format ! ( "{}/health" , self . host) ,
279279 & self . api_key ,
280- Method :: Get ,
280+ Method :: Get ( ( ) ) ,
281281 200 ,
282282 )
283283 . await
@@ -337,7 +337,7 @@ impl Client {
337337 let keys = request :: < ( ) , Keys > (
338338 & format ! ( "{}/keys" , self . host) ,
339339 & self . api_key ,
340- Method :: Get ,
340+ Method :: Get ( ( ) ) ,
341341 200 ,
342342 )
343343 . await ?;
@@ -371,7 +371,7 @@ impl Client {
371371 request :: < ( ) , Key > (
372372 & format ! ( "{}/keys/{}" , self . host, key. as_ref( ) ) ,
373373 & self . api_key ,
374- Method :: Get ,
374+ Method :: Get ( ( ) ) ,
375375 200 ,
376376 )
377377 . await
@@ -498,7 +498,7 @@ impl Client {
498498 request :: < ( ) , Version > (
499499 & format ! ( "{}/version" , self . host) ,
500500 & self . api_key ,
501- Method :: Get ,
501+ Method :: Get ( ( ) ) ,
502502 200 ,
503503 )
504504 . await
@@ -600,7 +600,7 @@ impl Client {
600600 request :: < ( ) , Task > (
601601 & format ! ( "{}/tasks/{}" , self . host, task_id. as_ref( ) ) ,
602602 & self . api_key ,
603- Method :: Get ,
603+ Method :: Get ( ( ) ) ,
604604 200 ,
605605 )
606606 . await
@@ -630,7 +630,7 @@ impl Client {
630630 let tasks = request :: < ( ) , Tasks > (
631631 & format ! ( "{}/tasks" , self . host) ,
632632 & self . api_key ,
633- Method :: Get ,
633+ Method :: Get ( ( ) ) ,
634634 200 ,
635635 )
636636 . await ?;
@@ -733,31 +733,31 @@ mod tests {
733733 mock( "GET" , path)
734734 . match_header( "User-Agent" , user_agent)
735735 . create( ) ,
736- request:: <String , ( ) >( address, "" , Method :: Get , 200 ) ,
736+ request:: <( ) , ( ) >( address, "" , Method :: Get ( ( ) ) , 200 ) ,
737737 ) ,
738738 (
739739 mock( "POST" , path)
740740 . match_header( "User-Agent" , user_agent)
741741 . create( ) ,
742- request:: <String , ( ) >( address, "" , Method :: Post ( "" . to_string ( ) ) , 200 ) ,
742+ request:: <( ) , ( ) >( address, "" , Method :: Post ( ( ) ) , 200 ) ,
743743 ) ,
744744 (
745745 mock( "DELETE" , path)
746746 . match_header( "User-Agent" , user_agent)
747747 . create( ) ,
748- request:: <String , ( ) >( address, "" , Method :: Delete , 200 ) ,
748+ request:: <( ) , ( ) >( address, "" , Method :: Delete , 200 ) ,
749749 ) ,
750750 (
751751 mock( "PUT" , path)
752752 . match_header( "User-Agent" , user_agent)
753753 . create( ) ,
754- request:: <String , ( ) >( address, "" , Method :: Put ( "" . to_string ( ) ) , 200 ) ,
754+ request:: <( ) , ( ) >( address, "" , Method :: Put ( ( ) ) , 200 ) ,
755755 ) ,
756756 (
757757 mock( "PATCH" , path)
758758 . match_header( "User-Agent" , user_agent)
759759 . create( ) ,
760- request:: <String , ( ) >( address, "" , Method :: Patch ( "" . to_string ( ) ) , 200 ) ,
760+ request:: <( ) , ( ) >( address, "" , Method :: Patch ( ( ) ) , 200 ) ,
761761 ) ,
762762 ] ;
763763
0 commit comments