Skip to content

Commit 93c5bd1

Browse files
authored
Merge pull request #3269 from TheBlueMatt/2024-08-this-should-work-bindings
Use the actual type, not the associated type, in trait impls
2 parents c9a2c4a + 5359ceb commit 93c5bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl AsyncPaymentsMessageHandler for IgnoringMessageHandler {
156156
}
157157
impl CustomOnionMessageHandler for IgnoringMessageHandler {
158158
type CustomMessage = Infallible;
159-
fn handle_custom_message(&self, _message: Self::CustomMessage, _context: Option<Vec<u8>>, _responder: Option<Responder>) -> Option<(Infallible, ResponseInstruction)> {
159+
fn handle_custom_message(&self, _message: Infallible, _context: Option<Vec<u8>>, _responder: Option<Responder>) -> Option<(Infallible, ResponseInstruction)> {
160160
// Since we always return `None` in the read the handle method should never be called.
161161
unreachable!();
162162
}

0 commit comments

Comments
 (0)