File tree Expand file tree Collapse file tree 8 files changed +22
-25
lines changed
Expand file tree Collapse file tree 8 files changed +22
-25
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " spaced"
3- version = " 0.0.2 "
3+ version = " 0.0.4 "
44edition = " 2021"
55
66
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ impl SpaceCli {
288288 fee_rate,
289289 dust : self . dust ,
290290 force : self . force ,
291- confirmed_only
291+ confirmed_only,
292292 } ,
293293 )
294294 . await ?;
@@ -444,15 +444,15 @@ async fn handle_commands(
444444 } ) ) ,
445445 None ,
446446 fee_rate,
447- false
447+ false ,
448448 )
449449 . await ?
450450 }
451451 Commands :: Bid {
452452 space,
453453 amount,
454454 fee_rate,
455- confirmed_only
455+ confirmed_only,
456456 } => {
457457 cli. send_request (
458458 Some ( RpcWalletRequest :: Bid ( BidParams {
@@ -461,7 +461,7 @@ async fn handle_commands(
461461 } ) ) ,
462462 None ,
463463 fee_rate,
464- confirmed_only
464+ confirmed_only,
465465 )
466466 . await ?
467467 }
@@ -480,7 +480,7 @@ async fn handle_commands(
480480 } ) ) ,
481481 None ,
482482 fee_rate,
483- false
483+ false ,
484484 )
485485 . await ?
486486 }
@@ -497,7 +497,7 @@ async fn handle_commands(
497497 } ) ) ,
498498 None ,
499499 fee_rate,
500- false
500+ false ,
501501 )
502502 . await ?
503503 }
@@ -513,7 +513,7 @@ async fn handle_commands(
513513 } ) ) ,
514514 None ,
515515 fee_rate,
516- false
516+ false ,
517517 )
518518 . await ?
519519 }
@@ -542,7 +542,7 @@ async fn handle_commands(
542542 } ) ) ,
543543 None ,
544544 fee_rate,
545- false
545+ false ,
546546 )
547547 . await ?;
548548 }
Original file line number Diff line number Diff line change 11[package ]
22name = " protocol"
3- version = " 0.0.2 "
3+ version = " 0.0.4 "
44edition = " 2021"
55
66[dependencies ]
Original file line number Diff line number Diff line change @@ -324,14 +324,8 @@ mod tests {
324324 SLabel :: try_from( "@xn---" ) . is_err( ) ,
325325 "Should not work with single hyphen punycode"
326326 ) ;
327- assert ! (
328- SLabel :: try_from( "@xn--1" ) . is_ok( ) ,
329- "Should be okay"
330- ) ;
331- assert ! (
332- SLabel :: try_from( "@0xn--1" ) . is_err( ) ,
333- "Should not be okay"
334- ) ;
327+ assert ! ( SLabel :: try_from( "@xn--1" ) . is_ok( ) , "Should be okay" ) ;
328+ assert ! ( SLabel :: try_from( "@0xn--1" ) . is_err( ) , "Should not be okay" ) ;
335329 assert ! (
336330 SLabel :: try_from( "@xn--123-pretty-valid-space-ok" ) . is_ok( ) ,
337331 "Should work :("
@@ -353,7 +347,9 @@ mod tests {
353347 ) ;
354348
355349 assert_eq ! (
356- SLabel :: try_from( b"\x14 xn--hello-world-1234-five-six-seven" ) . unwrap( ) . as_ref( ) ,
350+ SLabel :: try_from( b"\x14 xn--hello-world-1234-five-six-seven" )
351+ . unwrap( )
352+ . as_ref( ) ,
357353 b"\x14 xn--hello-world-1234" ,
358354 "Should work"
359355 ) ;
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ impl Validator {
478478 changeset : & mut TxChangeSet ,
479479 ) {
480480 let input = tx. input . get ( input_index as usize ) . expect ( "input" ) ;
481- let mut spaceout = stxo. previous_output ;
481+ let spaceout = stxo. previous_output ;
482482 let space_ref = spaceout. space . as_ref ( ) . unwrap ( ) ;
483483 // Handle bid spends
484484 if space_ref. is_bid_spend ( tx. version , input) {
Original file line number Diff line number Diff line change 11[package ]
22name = " wallet"
3- version = " 0.0.2 "
3+ version = " 0.0.4 "
44edition = " 2021"
55
66[dependencies ]
Original file line number Diff line number Diff line change @@ -311,7 +311,8 @@ impl SpacesWallet {
311311 // always prefer confirmed ones since
312312 // we don't monitor mempool for other competing bids
313313 // this makes replacements smoother
314- . iter ( ) . find ( |x| x. confirmed )
314+ . iter ( )
315+ . find ( |x| x. confirmed )
315316 . or_else ( || all. first ( ) )
316317 . ok_or_else ( || anyhow:: anyhow!( "{}" , msg) ) ?
317318 . clone ( ) ;
You can’t perform that action at this time.
0 commit comments