@@ -43,7 +43,7 @@ impl Client {
4343 /// This method fails when cannot complete the request at the address or
4444 /// cannot parse the body json as a `info::Response`.
4545 pub async fn info ( & self ) -> Result < api:: info:: Response > {
46- let response = self . client . get ( & format ! ( "{}/info" , self . server_address) ) . send ( ) . await ?;
46+ let response = self . client . get ( format ! ( "{}/info" , self . server_address) ) . send ( ) . await ?;
4747
4848 match response. status ( ) {
4949 StatusCode :: OK => Ok ( response. json ( ) . await ?) ,
@@ -110,7 +110,7 @@ impl Client {
110110 pub async fn local_install ( & self , file : & Path ) -> Result < api:: state:: Response > {
111111 let response = self
112112 . client
113- . post ( & format ! ( "{}/local_install" , self . server_address) )
113+ . post ( format ! ( "{}/local_install" , self . server_address) )
114114 . json ( & api:: local_install:: Request { file : file. to_owned ( ) } )
115115 . send ( )
116116 . await ?;
@@ -139,7 +139,7 @@ impl Client {
139139 pub async fn remote_install ( & self , url : & str ) -> Result < api:: state:: Response > {
140140 let response = self
141141 . client
142- . post ( & format ! ( "{}/remote_install" , self . server_address) )
142+ . post ( format ! ( "{}/remote_install" , self . server_address) )
143143 . json ( & api:: remote_install:: Request { url : url. to_owned ( ) } )
144144 . send ( )
145145 . await ?;
@@ -167,7 +167,7 @@ impl Client {
167167 pub async fn abort_download ( & self ) -> Result < api:: state:: Response > {
168168 let response = self
169169 . client
170- . post ( & format ! ( "{}/update/download/abort" , self . server_address) )
170+ . post ( format ! ( "{}/update/download/abort" , self . server_address) )
171171 . send ( )
172172 . await ?;
173173
@@ -193,7 +193,7 @@ impl Client {
193193 /// This method fails when cannot complete the request at the address or
194194 /// cannot parse the body json as a `log::Log`.
195195 pub async fn log ( & self ) -> Result < api:: log:: Log > {
196- let response = self . client . get ( & format ! ( "{}/log" , self . server_address) ) . send ( ) . await ?;
196+ let response = self . client . get ( format ! ( "{}/log" , self . server_address) ) . send ( ) . await ?;
197197
198198 match response. status ( ) {
199199 StatusCode :: OK => Ok ( response. json ( ) . await ?) ,
0 commit comments