@@ -84,7 +84,7 @@ impl AssetsState {
8484 // Always handle the mint deltas (This is how assets get initialized)
8585 {
8686 let mut reg = registry. lock ( ) . await ;
87- state = match state. handle_mint_deltas ( & deltas_msg. deltas , & mut * reg) {
87+ state = match state. handle_mint_deltas ( & deltas_msg. deltas , & mut reg) {
8888 Ok ( new_state) => new_state,
8989 Err ( e) => {
9090 error ! ( "Asset deltas handling error: {e:#}" ) ;
@@ -97,7 +97,7 @@ impl AssetsState {
9797 if storage_config. store_info {
9898 let mut reg = registry. lock ( ) . await ;
9999 state = match state
100- . handle_cip25_metadata ( & mut * reg, & deltas_msg. cip25_metadata_updates )
100+ . handle_cip25_metadata ( & mut reg, & deltas_msg. cip25_metadata_updates )
101101 {
102102 Ok ( new_state) => new_state,
103103 Err ( e) => {
@@ -125,20 +125,19 @@ impl AssetsState {
125125
126126 if storage_config. store_info {
127127 let reg = registry. lock ( ) . await ;
128- state =
129- match state . handle_cip68_metadata ( & utxo_deltas_msg . deltas , & * reg ) {
130- Ok ( new_state) => new_state,
131- Err ( e) => {
132- error ! ( "CIP-68 metadata handling error: {e:#}" ) ;
133- state
134- }
135- } ;
128+ state = match state . handle_cip68_metadata ( & utxo_deltas_msg . deltas , & reg )
129+ {
130+ Ok ( new_state) => new_state,
131+ Err ( e) => {
132+ error ! ( "CIP-68 metadata handling error: {e:#}" ) ;
133+ state
134+ }
135+ } ;
136136 }
137137
138138 if storage_config. store_transactions . is_enabled ( ) {
139139 let reg = registry. lock ( ) . await ;
140- state = match state. handle_transactions ( & utxo_deltas_msg. deltas , & * reg)
141- {
140+ state = match state. handle_transactions ( & utxo_deltas_msg. deltas , & reg) {
142141 Ok ( new_state) => new_state,
143142 Err ( e) => {
144143 error ! ( "Transactions handling error: {e:#}" ) ;
@@ -161,7 +160,7 @@ impl AssetsState {
161160 Self :: check_sync ( & current_block, block_info, "address" ) ;
162161
163162 let reg = registry. lock ( ) . await ;
164- state = match state. handle_address_deltas ( & address_deltas_msg. deltas , & * reg)
163+ state = match state. handle_address_deltas ( & address_deltas_msg. deltas , & reg)
165164 {
166165 Ok ( new_state) => new_state,
167166 Err ( e) => {
@@ -299,7 +298,7 @@ impl AssetsState {
299298 }
300299 AssetsStateQuery :: GetAssetInfo { policy, name } => {
301300 let reg = registry. lock ( ) . await ;
302- match reg. lookup_id ( & policy, & name) {
301+ match reg. lookup_id ( policy, name) {
303302 Some ( asset_id) => match state. get_asset_info ( & asset_id, & reg) {
304303 Ok ( Some ( info) ) => AssetsStateQueryResponse :: AssetInfo ( info) ,
305304 Ok ( None ) => AssetsStateQueryResponse :: NotFound ,
@@ -318,7 +317,7 @@ impl AssetsState {
318317 }
319318 AssetsStateQuery :: GetAssetHistory { policy, name } => {
320319 let reg = registry. lock ( ) . await ;
321- match reg. lookup_id ( & policy, & name) {
320+ match reg. lookup_id ( policy, name) {
322321 Some ( asset_id) => match state. get_asset_history ( & asset_id) {
323322 Ok ( Some ( history) ) => {
324323 AssetsStateQueryResponse :: AssetHistory ( history)
@@ -339,7 +338,7 @@ impl AssetsState {
339338 }
340339 AssetsStateQuery :: GetAssetAddresses { policy, name } => {
341340 let reg = registry. lock ( ) . await ;
342- match reg. lookup_id ( & policy, & name) {
341+ match reg. lookup_id ( policy, name) {
343342 Some ( asset_id) => match state. get_asset_addresses ( & asset_id) {
344343 Ok ( Some ( addresses) ) => {
345344 AssetsStateQueryResponse :: AssetAddresses ( addresses)
@@ -360,7 +359,7 @@ impl AssetsState {
360359 }
361360 AssetsStateQuery :: GetAssetTransactions { policy, name } => {
362361 let reg = registry. lock ( ) . await ;
363- match reg. lookup_id ( & policy, & name) {
362+ match reg. lookup_id ( policy, name) {
364363 Some ( asset_id) => match state. get_asset_transactions ( & asset_id) {
365364 Ok ( Some ( txs) ) => AssetsStateQueryResponse :: AssetTransactions ( txs) ,
366365 Ok ( None ) => AssetsStateQueryResponse :: NotFound ,
@@ -379,7 +378,7 @@ impl AssetsState {
379378 }
380379 AssetsStateQuery :: GetPolicyIdAssets { policy } => {
381380 let reg = registry. lock ( ) . await ;
382- match state. get_policy_assets ( & policy, & reg) {
381+ match state. get_policy_assets ( policy, & reg) {
383382 Ok ( Some ( assets) ) => AssetsStateQueryResponse :: PolicyIdAssets ( assets) ,
384383 Ok ( None ) => AssetsStateQueryResponse :: NotFound ,
385384 Err ( e) => AssetsStateQueryResponse :: Error ( e. to_string ( ) ) ,
0 commit comments