@@ -13,7 +13,7 @@ use blockfrost_openapi::models::{
1313
1414impl BlockfrostAPI {
1515 pub async fn accounts ( & self , stake_address : & str ) -> BlockfrostResult < AccountContent > {
16- self . call_endpoint ( format ! ( "/accounts/{}" , stake_address ) . as_str ( ) )
16+ self . call_endpoint ( format ! ( "/accounts/{stake_address}" ) . as_str ( ) )
1717 . await
1818 }
1919
@@ -22,7 +22,7 @@ impl BlockfrostAPI {
2222 & self , stake_address : & str , pagination : Pagination ,
2323 ) -> BlockfrostResult < Vec < AccountRewardContentInner > > {
2424 self . call_paged_endpoint (
25- format ! ( "/accounts/{}/rewards" , stake_address ) . as_str ( ) ,
25+ format ! ( "/accounts/{stake_address }/rewards" ) . as_str ( ) ,
2626 pagination,
2727 )
2828 . await
@@ -33,7 +33,7 @@ impl BlockfrostAPI {
3333 & self , stake_address : & str , pagination : Pagination ,
3434 ) -> BlockfrostResult < Vec < AccountHistoryContentInner > > {
3535 self . call_paged_endpoint (
36- format ! ( "/accounts/{}/history" , stake_address ) . as_str ( ) ,
36+ format ! ( "/accounts/{stake_address }/history" ) . as_str ( ) ,
3737 pagination,
3838 )
3939 . await
@@ -43,7 +43,7 @@ impl BlockfrostAPI {
4343 & self , stake_address : & str , pagination : Pagination ,
4444 ) -> BlockfrostResult < Vec < AccountDelegationContentInner > > {
4545 self . call_paged_endpoint (
46- format ! ( "/accounts/{}/delegations" , stake_address ) . as_str ( ) ,
46+ format ! ( "/accounts/{stake_address }/delegations" ) . as_str ( ) ,
4747 pagination,
4848 )
4949 . await
@@ -53,7 +53,7 @@ impl BlockfrostAPI {
5353 & self , stake_address : & str , pagination : Pagination ,
5454 ) -> BlockfrostResult < Vec < AccountRegistrationContentInner > > {
5555 self . call_paged_endpoint (
56- format ! ( "/accounts/{}/registrations" , stake_address ) . as_str ( ) ,
56+ format ! ( "/accounts/{stake_address }/registrations" ) . as_str ( ) ,
5757 pagination,
5858 )
5959 . await
@@ -63,7 +63,7 @@ impl BlockfrostAPI {
6363 & self , stake_address : & str , pagination : Pagination ,
6464 ) -> BlockfrostResult < Vec < AccountWithdrawalContentInner > > {
6565 self . call_paged_endpoint (
66- format ! ( "/accounts/{}/withdrawals" , stake_address ) . as_str ( ) ,
66+ format ! ( "/accounts/{stake_address }/withdrawals" ) . as_str ( ) ,
6767 pagination,
6868 )
6969 . await
@@ -73,7 +73,7 @@ impl BlockfrostAPI {
7373 & self , stake_address : & str , pagination : Pagination ,
7474 ) -> BlockfrostResult < Vec < AccountMirContentInner > > {
7575 self . call_paged_endpoint (
76- format ! ( "/accounts/{}/mirs" , stake_address ) . as_str ( ) ,
76+ format ! ( "/accounts/{stake_address }/mirs" ) . as_str ( ) ,
7777 pagination,
7878 )
7979 . await
@@ -83,7 +83,7 @@ impl BlockfrostAPI {
8383 & self , stake_address : & str , pagination : Pagination ,
8484 ) -> BlockfrostResult < Vec < AccountAddressesContentInner > > {
8585 self . call_paged_endpoint (
86- format ! ( "/accounts/{}/addresses" , stake_address ) . as_str ( ) ,
86+ format ! ( "/accounts/{stake_address }/addresses" , ) . as_str ( ) ,
8787 pagination,
8888 )
8989 . await
@@ -93,7 +93,7 @@ impl BlockfrostAPI {
9393 & self , stake_address : & str , pagination : Pagination ,
9494 ) -> BlockfrostResult < Vec < AccountAddressesAssetsInner > > {
9595 self . call_paged_endpoint (
96- format ! ( "/accounts/{}/addresses/assets" , stake_address ) . as_str ( ) ,
96+ format ! ( "/accounts/{stake_address }/addresses/assets" ) . as_str ( ) ,
9797 pagination,
9898 )
9999 . await
@@ -102,7 +102,7 @@ impl BlockfrostAPI {
102102 pub async fn accounts_addresses_total (
103103 & self , stake_address : & str ,
104104 ) -> BlockfrostResult < AccountAddressesTotal > {
105- self . call_endpoint ( format ! ( "/accounts/{}/addresses/total" , stake_address ) . as_str ( ) )
105+ self . call_endpoint ( format ! ( "/accounts/{stake_address }/addresses/total" ) . as_str ( ) )
106106 . await
107107 }
108108}
0 commit comments