@@ -147,21 +147,15 @@ impl PendingOutboundPayment {
147147		* self  = PendingOutboundPayment :: Fulfilled  {  session_privs,  payment_hash,  timer_ticks_without_htlcs :  0  } ; 
148148	} 
149149
150- 	fn  mark_abandoned ( & mut  self ,  reason :  PaymentFailureReason )  -> Result < ( ) ,  ( ) >  { 
151- 		match  self  { 
152- 			PendingOutboundPayment :: Legacy  {  .. }  |
153- 			PendingOutboundPayment :: Fulfilled  {  .. }  => Err ( ( ) ) , 
154- 			PendingOutboundPayment :: Retryable  {  session_privs,  payment_hash,  .. }  => { 
155- 				let  mut  our_session_privs = HashSet :: new ( ) ; 
156- 				core:: mem:: swap ( & mut  our_session_privs,  session_privs) ; 
157- 				* self  = PendingOutboundPayment :: Abandoned  { 
158- 					session_privs :  our_session_privs, 
159- 					payment_hash :  * payment_hash, 
160- 					reason :  Some ( reason) 
161- 				} ; 
162- 				Ok ( ( ) ) 
163- 			} , 
164- 			PendingOutboundPayment :: Abandoned  {  .. }  => Ok ( ( ) ) , 
150+ 	fn  mark_abandoned ( & mut  self ,  reason :  PaymentFailureReason )  { 
151+ 		if  let  PendingOutboundPayment :: Retryable  {  session_privs,  payment_hash,  .. }  = self  { 
152+ 			let  mut  our_session_privs = HashSet :: new ( ) ; 
153+ 			core:: mem:: swap ( & mut  our_session_privs,  session_privs) ; 
154+ 			* self  = PendingOutboundPayment :: Abandoned  { 
155+ 				session_privs :  our_session_privs, 
156+ 				payment_hash :  * payment_hash, 
157+ 				reason :  Some ( reason) 
158+ 			} ; 
165159		} 
166160	} 
167161
@@ -591,7 +585,7 @@ impl OutboundPayments {
591585		outbounds. retain ( |pmt_id,  pmt| { 
592586			let  mut  retain = true ; 
593587			if  !pmt. is_auto_retryable_now ( )  && pmt. remaining_parts ( )  == 0  { 
594- 				let  _ =  pmt. mark_abandoned ( PaymentFailureReason :: RetriesExhausted ) ; 
588+ 				pmt. mark_abandoned ( PaymentFailureReason :: RetriesExhausted ) ; 
595589				if  let  PendingOutboundPayment :: Abandoned  {  payment_hash,  reason,  .. }  = pmt { 
596590					pending_events. lock ( ) . unwrap ( ) . push ( events:: Event :: PaymentFailed  { 
597591						payment_id :  * pmt_id, 
@@ -709,7 +703,7 @@ impl OutboundPayments {
709703
710704		macro_rules!  abandon_with_entry { 
711705			( $payment:  expr,  $reason:  expr)  => { 
712- 				let  _ =  $payment. get_mut( ) . mark_abandoned( $reason) ; 
706+ 				$payment. get_mut( ) . mark_abandoned( $reason) ; 
713707				if  let  PendingOutboundPayment :: Abandoned  {  reason,  .. }  = $payment. get( )  { 
714708					if  $payment. get( ) . remaining_parts( )  == 0  { 
715709						pending_events. lock( ) . unwrap( ) . push( events:: Event :: PaymentFailed  { 
@@ -1232,7 +1226,7 @@ impl OutboundPayments {
12321226				}  else  { 
12331227					PaymentFailureReason :: RetriesExhausted 
12341228				} ; 
1235- 				let  _ =  payment. get_mut ( ) . mark_abandoned ( reason) ;  // we'll only Err if it's a legacy payment 
1229+ 				payment. get_mut ( ) . mark_abandoned ( reason) ;  // we'll only Err if it's a legacy payment 
12361230				is_retryable_now = false ; 
12371231			} 
12381232			if  payment. get ( ) . remaining_parts ( )  == 0  { 
@@ -1303,7 +1297,7 @@ impl OutboundPayments {
13031297	)  { 
13041298		let  mut  outbounds = self . pending_outbound_payments . lock ( ) . unwrap ( ) ; 
13051299		if  let  hash_map:: Entry :: Occupied ( mut  payment)  = outbounds. entry ( payment_id)  { 
1306- 			let  _ =  payment. get_mut ( ) . mark_abandoned ( reason) ; 
1300+ 			payment. get_mut ( ) . mark_abandoned ( reason) ; 
13071301			if  let  PendingOutboundPayment :: Abandoned  {  payment_hash,  reason,  .. }  = payment. get ( )  { 
13081302				if  payment. get ( ) . remaining_parts ( )  == 0  { 
13091303					pending_events. lock ( ) . unwrap ( ) . push ( events:: Event :: PaymentFailed  { 
0 commit comments