@@ -3380,7 +3380,7 @@ fn do_test_commitment_revoked_fail_backward_exhaustive(deliver_bs_raa: bool, use
33803380 )));
33813381 assert!(events.iter().any(|ev| matches!(
33823382 ev,
3383- Event::PaymentFailed { ref payment_hash, .. } if *payment_hash == fourth_payment_hash
3383+ Event::PaymentFailed { ref payment_hash, .. } if *payment_hash == Some( fourth_payment_hash)
33843384 )));
33853385
33863386 nodes[1].node.process_pending_htlc_forwards();
@@ -3442,7 +3442,7 @@ fn do_test_commitment_revoked_fail_backward_exhaustive(deliver_bs_raa: bool, use
34423442 }
34433443 match events[1] {
34443444 Event::PaymentFailed { ref payment_hash, .. } => {
3445- assert_eq!(*payment_hash, first_payment_hash);
3445+ assert_eq!(*payment_hash, Some( first_payment_hash) );
34463446 },
34473447 _ => panic!("Unexpected event"),
34483448 }
@@ -3454,7 +3454,7 @@ fn do_test_commitment_revoked_fail_backward_exhaustive(deliver_bs_raa: bool, use
34543454 }
34553455 match events[3] {
34563456 Event::PaymentFailed { ref payment_hash, .. } => {
3457- assert_eq!(*payment_hash, second_payment_hash);
3457+ assert_eq!(*payment_hash, Some( second_payment_hash) );
34583458 },
34593459 _ => panic!("Unexpected event"),
34603460 }
@@ -3466,7 +3466,7 @@ fn do_test_commitment_revoked_fail_backward_exhaustive(deliver_bs_raa: bool, use
34663466 }
34673467 match events[5] {
34683468 Event::PaymentFailed { ref payment_hash, .. } => {
3469- assert_eq!(*payment_hash, third_payment_hash);
3469+ assert_eq!(*payment_hash, Some( third_payment_hash) );
34703470 },
34713471 _ => panic!("Unexpected event"),
34723472 }
@@ -3572,7 +3572,7 @@ fn fail_backward_pending_htlc_upon_channel_failure() {
35723572 }
35733573 match events[1] {
35743574 Event::PaymentFailed { payment_hash, .. } => {
3575- assert_eq!(payment_hash, failed_payment_hash);
3575+ assert_eq!(payment_hash, Some( failed_payment_hash) );
35763576 },
35773577 _ => panic!("Unexpected event"),
35783578 }
@@ -3851,7 +3851,7 @@ fn test_simple_peer_disconnect() {
38513851 }
38523852 match events[3] {
38533853 Event::PaymentFailed { payment_hash, .. } => {
3854- assert_eq!(payment_hash, payment_hash_5);
3854+ assert_eq!(payment_hash, Some( payment_hash_5) );
38553855 },
38563856 _ => panic!("Unexpected event"),
38573857 }
@@ -6007,7 +6007,7 @@ fn test_fail_holding_cell_htlc_upon_free() {
60076007 }
60086008 match &events[1] {
60096009 &Event::PaymentFailed { ref payment_hash, .. } => {
6010- assert_eq!(our_payment_hash.clone( ), *payment_hash);
6010+ assert_eq!(Some(our_payment_hash ), *payment_hash);
60116011 },
60126012 _ => panic!("Unexpected event"),
60136013 }
@@ -6095,7 +6095,7 @@ fn test_free_and_fail_holding_cell_htlcs() {
60956095 }
60966096 match &events[1] {
60976097 &Event::PaymentFailed { ref payment_hash, .. } => {
6098- assert_eq!(payment_hash_2.clone( ), *payment_hash);
6098+ assert_eq!(Some(payment_hash_2 ), *payment_hash);
60996099 },
61006100 _ => panic!("Unexpected event"),
61016101 }
@@ -7048,7 +7048,7 @@ fn test_channel_failed_after_message_with_badonion_node_perm_bits_set() {
70487048 }
70497049 match events_5[1] {
70507050 Event::PaymentFailed { payment_hash, .. } => {
7051- assert_eq!(payment_hash, our_payment_hash);
7051+ assert_eq!(payment_hash, Some( our_payment_hash) );
70527052 },
70537053 _ => panic!("Unexpected event"),
70547054 }
0 commit comments