File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -579,13 +579,10 @@ impl RpcWallet {
579579 continue ;
580580 }
581581
582- let foreign_input = match event. foreign_input {
583- None => continue ,
584- Some ( outpoint) => outpoint
585- } ;
586- if foreign_input != space. outpoint ( ) {
587- res. outbid . push ( space) ;
582+ if event. foreign_input . is_some_and ( |input| input == space. outpoint ( ) ) {
583+ continue ;
588584 }
585+ res. outbid . push ( space) ;
589586 }
590587 }
591588
Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ async fn it_should_allow_outbidding(rig: &TestRig) -> anyhow::Result<()> {
105105 alice_spaces_updated. winning. len( ) ,
106106 "alice must have one less space"
107107 ) ;
108- // assert_eq!(
109- // alices_spaces.outbid.len() + 1,
110- // alice_spaces_updated.outbid.len(),
111- // "alice must have one less space"
112- // );
108+ assert_eq ! (
109+ alices_spaces. outbid. len( ) + 1 ,
110+ alice_spaces_updated. outbid. len( ) ,
111+ "alice must have one less space"
112+ ) ;
113113 assert_eq ! (
114114 bobs_spaces. winning. len( ) + 1 ,
115115 bob_spaces_updated. winning. len( ) ,
You can’t perform that action at this time.
0 commit comments