From 786cf377aa5c613e0dc369aec055a9fb5d3500b8 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Wed, 8 Jan 2025 18:53:13 -0600 Subject: [PATCH] Remove unnecessary lifetime parameter --- lightning/src/ln/channel.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 66e6dbcfe77..ffc6fdbeacb 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -1134,11 +1134,11 @@ pub(super) enum Channel where SP::Target: SignerProvider { Funded(FundedChannel), } -impl<'a, SP: Deref> Channel where +impl Channel where SP::Target: SignerProvider, ::EcdsaSigner: ChannelSigner, { - pub fn context(&'a self) -> &'a ChannelContext { + pub fn context(&self) -> &ChannelContext { match self { Channel::Funded(chan) => &chan.context, Channel::UnfundedOutboundV1(chan) => &chan.context, @@ -1147,7 +1147,7 @@ impl<'a, SP: Deref> Channel where } } - pub fn context_mut(&'a mut self) -> &'a mut ChannelContext { + pub fn context_mut(&mut self) -> &mut ChannelContext { match self { Channel::Funded(ref mut chan) => &mut chan.context, Channel::UnfundedOutboundV1(ref mut chan) => &mut chan.context,