@@ -166,7 +166,7 @@ impl ChainStore {
166166 BlocksStateQuery :: GetBlockInfo { block_key } => {
167167 let Some ( block) = Self :: get_block_by_key ( store, block_key) ? else {
168168 return Ok ( BlocksStateQueryResponse :: Error ( QueryError :: not_found (
169- & format ! ( "Block {:?} not found" , block_key) ,
169+ format ! ( "Block {:?} not found" , block_key) ,
170170 ) ) ) ;
171171 } ;
172172 let info = Self :: to_block_info ( block, store, state, false ) ?;
@@ -175,7 +175,7 @@ impl ChainStore {
175175 BlocksStateQuery :: GetBlockBySlot { slot } => {
176176 let Some ( block) = store. get_block_by_slot ( * slot) ? else {
177177 return Ok ( BlocksStateQueryResponse :: Error ( QueryError :: not_found (
178- & format ! ( "Block at slot {} not found" , slot) ,
178+ format ! ( "Block at slot {} not found" , slot) ,
179179 ) ) ) ;
180180 } ;
181181 let info = Self :: to_block_info ( block, store, state, false ) ?;
@@ -184,7 +184,7 @@ impl ChainStore {
184184 BlocksStateQuery :: GetBlockByEpochSlot { epoch, slot } => {
185185 let Some ( block) = store. get_block_by_epoch_slot ( * epoch, * slot) ? else {
186186 return Ok ( BlocksStateQueryResponse :: Error ( QueryError :: not_found (
187- & format ! ( "Block at epoch {} slot {} not found" , epoch, slot) ,
187+ format ! ( "Block at epoch {} slot {} not found" , epoch, slot) ,
188188 ) ) ) ;
189189 } ;
190190 let info = Self :: to_block_info ( block, store, state, false ) ?;
@@ -202,7 +202,7 @@ impl ChainStore {
202202 }
203203 let Some ( block) = Self :: get_block_by_key ( store, block_key) ? else {
204204 return Ok ( BlocksStateQueryResponse :: Error ( QueryError :: not_found (
205- & format ! ( "Block {:?} not found" , block_key) ,
205+ format ! ( "Block {:?} not found" , block_key) ,
206206 ) ) ) ;
207207 } ;
208208 let number = match block_key {
@@ -229,7 +229,7 @@ impl ChainStore {
229229 }
230230 let Some ( block) = Self :: get_block_by_key ( store, block_key) ? else {
231231 return Ok ( BlocksStateQueryResponse :: Error ( QueryError :: not_found (
232- & format ! ( "Block {:?} not found" , block_key) ,
232+ format ! ( "Block {:?} not found" , block_key) ,
233233 ) ) ) ;
234234 } ;
235235 let number = match block_key {
@@ -256,7 +256,7 @@ impl ChainStore {
256256 } => {
257257 let Some ( block) = Self :: get_block_by_key ( store, block_key) ? else {
258258 return Ok ( BlocksStateQueryResponse :: Error ( QueryError :: not_found (
259- & format ! ( "Block {:?} not found" , block_key) ,
259+ format ! ( "Block {:?} not found" , block_key) ,
260260 ) ) ) ;
261261 } ;
262262 let txs = Self :: to_block_transactions ( block, limit, skip, order) ?;
@@ -270,7 +270,7 @@ impl ChainStore {
270270 } => {
271271 let Some ( block) = Self :: get_block_by_key ( store, block_key) ? else {
272272 return Ok ( BlocksStateQueryResponse :: Error ( QueryError :: not_found (
273- & format ! ( "Block {:?} not found" , block_key) ,
273+ format ! ( "Block {:?} not found" , block_key) ,
274274 ) ) ) ;
275275 } ;
276276 let txs = Self :: to_block_transactions_cbor ( block, limit, skip, order) ?;
@@ -283,7 +283,7 @@ impl ChainStore {
283283 } => {
284284 let Some ( block) = Self :: get_block_by_key ( store, block_key) ? else {
285285 return Ok ( BlocksStateQueryResponse :: Error ( QueryError :: not_found (
286- & format ! ( "Block {:?} not found" , block_key) ,
286+ format ! ( "Block {:?} not found" , block_key) ,
287287 ) ) ) ;
288288 } ;
289289 let addresses = Self :: to_block_involved_addresses ( block, limit, skip) ?;
0 commit comments