Merge pull request #3269 from TheBlueMatt/2024-08-this-should-work-bindings

Use the actual type, not the associated type, in trait impls
This commit is contained in:
Matt Corallo 2024-08-23 22:53:24 +00:00 committed by GitHub
commit 93c5bd1cf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,7 +156,7 @@ impl AsyncPaymentsMessageHandler for IgnoringMessageHandler {
} }
impl CustomOnionMessageHandler for IgnoringMessageHandler { impl CustomOnionMessageHandler for IgnoringMessageHandler {
type CustomMessage = Infallible; 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. // Since we always return `None` in the read the handle method should never be called.
unreachable!(); unreachable!();
} }