File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ async fn main() -> Result<()> {
4747 if let Some ( username) = username {
4848 let credentials = format ! ( "{}:{}" , username, password. unwrap( ) ) ;
4949 let encoded = BASE64_STANDARD . encode ( credentials) ;
50- builder = builder. insert_header ( "Authorization" , format ! ( "Basic {}" , encoded ) ) ;
50+ builder = builder. insert_header ( "Authorization" , format ! ( "Basic {encoded}" ) ) ;
5151 }
5252
5353 let client = builder. try_build ( ) . expect ( "could not build client" ) ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ async fn main() -> Result<()> {
4848 if let Some ( username) = username {
4949 let credentials = format ! ( "{}:{}" , username, password. unwrap( ) ) ;
5050 let encoded = BASE64_STANDARD . encode ( credentials) ;
51- builder = builder. insert_header ( "Authorization" , format ! ( "Basic {}" , encoded ) ) ;
51+ builder = builder. insert_header ( "Authorization" , format ! ( "Basic {encoded}" ) ) ;
5252 }
5353
5454 let client = builder. try_build ( ) . expect ( "could not build client" ) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ async fn list_all_tasks(client: &Client) -> Result<()> {
4040 . into_diagnostic ( )
4141 . context ( "listing tasks" ) ?;
4242
43- println ! ( "{:#?}" , response ) ;
43+ println ! ( "{response :#?}" ) ;
4444
4545 last_token = response. next_page_token ;
4646 if last_token. is_none ( ) {
@@ -73,7 +73,7 @@ async fn main() -> Result<()> {
7373 if let Some ( username) = username {
7474 let credentials = format ! ( "{}:{}" , username, password. unwrap( ) ) ;
7575 let encoded = BASE64_STANDARD . encode ( credentials) ;
76- builder = builder. insert_header ( "Authorization" , format ! ( "Basic {}" , encoded ) ) ;
76+ builder = builder. insert_header ( "Authorization" , format ! ( "Basic {encoded}" ) ) ;
7777 }
7878
7979 let client = builder. try_build ( ) . expect ( "could not build client" ) ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ async fn main() -> Result<()> {
4848 if let Some ( username) = username {
4949 let credentials = format ! ( "{}:{}" , username, password. unwrap( ) ) ;
5050 let encoded = BASE64_STANDARD . encode ( credentials) ;
51- builder = builder. insert_header ( "Authorization" , format ! ( "Basic {}" , encoded ) ) ;
51+ builder = builder. insert_header ( "Authorization" , format ! ( "Basic {encoded}" ) ) ;
5252 }
5353
5454 let client = builder. try_build ( ) . expect ( "could not build client" ) ;
You can’t perform that action at this time.
0 commit comments