]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Use the actual type, not the associated type, in trait impls 2024-08-this-should-work-bindings
authorMatt Corallo <git@bluematt.me>
Fri, 23 Aug 2024 15:33:22 +0000 (15:33 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Aug 2024 15:33:22 +0000 (15:33 +0000)
This is equivalent and just easier for the bindings to deal with
(though, really, they should handle it).

lightning/src/ln/peer_handler.rs

index 69a528e124b513d9080c04443dce9deda4ebd19c..a1fedec89883b08afb7c3ad992a116728b5e2445 100644 (file)
@@ -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<Vec<u8>>, _responder: Option<Responder>) -> Option<(Infallible, ResponseInstruction)> {
+       fn handle_custom_message(&self, _message: Infallible, _context: Option<Vec<u8>>, _responder: Option<Responder>) -> Option<(Infallible, ResponseInstruction)> {
                // Since we always return `None` in the read the handle method should never be called.
                unreachable!();
        }