From: Jeffrey Czyz Date: Thu, 18 Jul 2024 15:24:09 +0000 (-0500) Subject: Add debug_assert!(false) for unreachable code X-Git-Tag: v0.0.124-beta~33^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=b697fbe78b952aa1a9c3932b7a22d159ba337669;p=rust-lightning Add debug_assert!(false) for unreachable code --- diff --git a/lightning/src/ln/outbound_payment.rs b/lightning/src/ln/outbound_payment.rs index e894b4e38..43b636fb7 100644 --- a/lightning/src/ln/outbound_payment.rs +++ b/lightning/src/ln/outbound_payment.rs @@ -1175,6 +1175,7 @@ impl OutboundPayments { }, PendingOutboundPayment::AwaitingInvoice { .. } => { log_error!(logger, "Payment not yet sent"); + debug_assert!(false); return }, PendingOutboundPayment::InvoiceReceived { .. } => {