@@ -319,9 +319,11 @@ impl HistoricalAccountsState {
319319 Ok ( None ) => AccountsStateQueryResponse :: Error ( QueryError :: not_found (
320320 format ! ( "Account {}" , account) ,
321321 ) ) ,
322- Err ( e) => AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
323- format ! ( "Failed to get registration history: {}" , e) ,
324- ) ) ,
322+ Err ( e) => {
323+ AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
324+ format ! ( "Failed to get registration history: {}" , e) ,
325+ ) )
326+ }
325327 }
326328 }
327329 AccountsStateQuery :: GetAccountDelegationHistory { account } => {
@@ -332,9 +334,11 @@ impl HistoricalAccountsState {
332334 Ok ( None ) => AccountsStateQueryResponse :: Error ( QueryError :: not_found (
333335 format ! ( "Account {}" , account) ,
334336 ) ) ,
335- Err ( e) => AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
336- format ! ( "Failed to get delegation history: {}" , e) ,
337- ) ) ,
337+ Err ( e) => {
338+ AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
339+ format ! ( "Failed to get delegation history: {}" , e) ,
340+ ) )
341+ }
338342 }
339343 }
340344 AccountsStateQuery :: GetAccountMIRHistory { account } => {
@@ -343,9 +347,11 @@ impl HistoricalAccountsState {
343347 Ok ( None ) => AccountsStateQueryResponse :: Error ( QueryError :: not_found (
344348 format ! ( "Account {}" , account) ,
345349 ) ) ,
346- Err ( e) => AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
347- format ! ( "Failed to get MIR history: {}" , e) ,
348- ) ) ,
350+ Err ( e) => {
351+ AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
352+ format ! ( "Failed to get MIR history: {}" , e) ,
353+ ) )
354+ }
349355 }
350356 }
351357 AccountsStateQuery :: GetAccountWithdrawalHistory { account } => {
@@ -356,9 +362,11 @@ impl HistoricalAccountsState {
356362 Ok ( None ) => AccountsStateQueryResponse :: Error ( QueryError :: not_found (
357363 format ! ( "Account {}" , account) ,
358364 ) ) ,
359- Err ( e) => AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
360- format ! ( "Failed to get withdrawal history: {}" , e) ,
361- ) ) ,
365+ Err ( e) => {
366+ AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
367+ format ! ( "Failed to get withdrawal history: {}" , e) ,
368+ ) )
369+ }
362370 }
363371 }
364372 AccountsStateQuery :: GetAccountRewardHistory { account } => {
@@ -369,9 +377,11 @@ impl HistoricalAccountsState {
369377 Ok ( None ) => AccountsStateQueryResponse :: Error ( QueryError :: not_found (
370378 format ! ( "Account {}" , account) ,
371379 ) ) ,
372- Err ( e) => AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
373- format ! ( "Failed to get reward history: {}" , e) ,
374- ) ) ,
380+ Err ( e) => {
381+ AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
382+ format ! ( "Failed to get reward history: {}" , e) ,
383+ ) )
384+ }
375385 }
376386 }
377387 AccountsStateQuery :: GetAccountAssociatedAddresses { account } => {
@@ -382,9 +392,11 @@ impl HistoricalAccountsState {
382392 Ok ( None ) => AccountsStateQueryResponse :: Error ( QueryError :: not_found (
383393 format ! ( "Account {}" , account) ,
384394 ) ) ,
385- Err ( e) => AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
386- format ! ( "Failed to get associated addresses: {}" , e) ,
387- ) ) ,
395+ Err ( e) => {
396+ AccountsStateQueryResponse :: Error ( QueryError :: internal_error (
397+ format ! ( "Failed to get associated addresses: {}" , e) ,
398+ ) )
399+ }
388400 }
389401 }
390402 _ => AccountsStateQueryResponse :: Error ( QueryError :: not_implemented ( format ! (
0 commit comments