File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ fn main() -> Result<(), Error> {
393
393
fs:: write ( psbt_out. unwrap_or ( psbt_in) , psbt_bytes) ?;
394
394
}
395
395
PsbtCommand :: Analyze { psbt } => {
396
- let psbt_bytes = fs:: read ( & psbt) ?;
396
+ let psbt_bytes = fs:: read ( psbt) ?;
397
397
let psbt = Psbt :: deserialize ( & psbt_bytes) ?;
398
398
399
399
println ! ( "contracts:" ) ;
@@ -445,7 +445,7 @@ fn main() -> Result<(), Error> {
445
445
println ! (
446
446
" - {}/{:#04x}/{}: {}" ,
447
447
prefix,
448
- u8 :: from ( key. subtype) ,
448
+ key. subtype,
449
449
key. key. to_hex( ) ,
450
450
value. to_hex( )
451
451
) ;
@@ -459,7 +459,7 @@ fn main() -> Result<(), Error> {
459
459
println ! (
460
460
" - {}/{:#04x}/{}: {}" ,
461
461
prefix,
462
- u8 :: from ( key. subtype) ,
462
+ key. subtype,
463
463
key. key. to_hex( ) ,
464
464
value. to_hex( )
465
465
) ;
@@ -474,7 +474,7 @@ fn main() -> Result<(), Error> {
474
474
println ! (
475
475
" - {}/{:#04x}/{}: {}" ,
476
476
prefix,
477
- u8 :: from ( key. subtype) ,
477
+ key. subtype,
478
478
key. key. to_hex( ) ,
479
479
value. to_hex( )
480
480
) ;
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ impl ContractState {
203
203
if owned_value. seal == outpoint {
204
204
state. insert ( OutpointState {
205
205
node_outpoint : owned_value. outpoint ,
206
- state : owned_value. state . clone ( ) . into ( ) ,
206
+ state : owned_value. state . into ( ) ,
207
207
} ) ;
208
208
}
209
209
}
@@ -243,7 +243,7 @@ impl ContractState {
243
243
. or_default ( )
244
244
. insert ( OutpointState {
245
245
node_outpoint : owned_value. outpoint ,
246
- state : owned_value. state . clone ( ) . into ( ) ,
246
+ state : owned_value. state . into ( ) ,
247
247
} ) ;
248
248
}
249
249
for owned_data in & self . owned_data {
@@ -287,7 +287,7 @@ impl ContractState {
287
287
. or_default ( )
288
288
. insert ( OutpointState {
289
289
node_outpoint : owned_value. outpoint ,
290
- state : owned_value. state . clone ( ) . into ( ) ,
290
+ state : owned_value. state . into ( ) ,
291
291
} ) ;
292
292
}
293
293
}
You can’t perform that action at this time.
0 commit comments