From: Matt Corallo Date: Fri, 23 Aug 2024 15:33:22 +0000 (+0000) Subject: Use the actual type, not the associated type, in trait impls X-Git-Tag: v0.0.124-rc1~13^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5359cebe21f628ee25f1cb6892a9ac784764b38f;p=rust-lightning 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). --- 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!(); }