Skip to content

Commit 5359ceb

Browse files
committed
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).
1 parent 49dfa5a commit 5359ceb

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)