@@ -157,7 +157,7 @@ impl Runtime {
157
157
let chunk = self
158
158
. store
159
159
. retrieve_chunk ( storm_rpc:: DB_TABLE_CHUNKS , chunk_id) ?
160
- . expect ( & format ! ( "Chunk {} is absent" , chunk_id) ) ;
160
+ . unwrap_or_else ( || panic ! ( "Chunk {} is absent" , chunk_id) ) ;
161
161
writer. write_all ( chunk. as_slice ( ) ) . expect ( "memory writers do not error" ) ;
162
162
}
163
163
@@ -227,7 +227,7 @@ impl Runtime {
227
227
method : close_method,
228
228
blinding : blinding_factor,
229
229
txid : Some ( outpoint. txid ) ,
230
- vout : outpoint. vout as u32 ,
230
+ vout : outpoint. vout ,
231
231
} ;
232
232
233
233
let concealed_seals = consignment
@@ -289,7 +289,7 @@ impl Runtime {
289
289
method : close_method,
290
290
blinding : blinding_factor,
291
291
txid : Some ( outpoint. txid ) ,
292
- vout : outpoint. vout as u32 ,
292
+ vout : outpoint. vout ,
293
293
} ;
294
294
295
295
let mut owned_rights: BTreeMap < OwnedRightType , TypedAssignments > = bmap ! { } ;
@@ -400,7 +400,7 @@ impl Runtime {
400
400
debug ! ( "Processing state extension {}" , node_id) ;
401
401
trace ! ( "State transition: {:?}" , extension) ;
402
402
403
- state. add_extension ( & extension) ;
403
+ state. add_extension ( extension) ;
404
404
trace ! ( "Contract state now is {:?}" , state) ;
405
405
406
406
self . store . store_sten ( db:: NODE_CONTRACTS , node_id, & contract_id) ?;
@@ -425,7 +425,7 @@ impl Runtime {
425
425
. retrieve_sten ( db:: DISCLOSURES , txid) ?
426
426
. ok_or ( StashError :: DisclosureAbsent ( txid) ) ?;
427
427
428
- for ( _anchor_id , ( anchor, bundle_map) ) in disclosure. anchored_bundles ( ) {
428
+ for ( anchor, bundle_map) in disclosure. anchored_bundles ( ) . values ( ) {
429
429
for ( contract_id, bundle) in bundle_map {
430
430
let mut state: ContractState = self
431
431
. store
0 commit comments