From 5359cebe21f628ee25f1cb6892a9ac784764b38f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 23 Aug 2024 15:33:22 +0000 Subject: [PATCH] Use the actual type, not the associated type, in trait impls This is equivalent and just easier for the bindings to deal with (though, really, they should handle it). --- lightning/src/ln/peer_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 69a528e12..a1fedec89 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -156,7 +156,7 @@ impl AsyncPaymentsMessageHandler for IgnoringMessageHandler { } impl CustomOnionMessageHandler for IgnoringMessageHandler { type CustomMessage = Infallible; - fn handle_custom_message(&self, _message: Self::CustomMessage, _context: Option>, _responder: Option) -> Option<(Infallible, ResponseInstruction)> { + fn handle_custom_message(&self, _message: Infallible, _context: Option>, _responder: Option) -> Option<(Infallible, ResponseInstruction)> { // Since we always return `None` in the read the handle method should never be called. unreachable!(); } -- 2.39.5