Remove unnecessary lifetime parameter

This commit is contained in:
Jeffrey Czyz 2025-01-08 18:53:13 -06:00
parent 442b030504
commit 4579e63e9e
No known key found for this signature in database
GPG Key ID: 912EF12EA67705F5

View File

@ -1134,11 +1134,11 @@ pub(super) enum Channel<SP: Deref> where SP::Target: SignerProvider {
Funded(FundedChannel<SP>),
}
impl<'a, SP: Deref> Channel<SP> where
impl<SP: Deref> Channel<SP> where
SP::Target: SignerProvider,
<SP::Target as SignerProvider>::EcdsaSigner: ChannelSigner,
{
pub fn context(&'a self) -> &'a ChannelContext<SP> {
pub fn context(&self) -> &ChannelContext<SP> {
match self {
Channel::Funded(chan) => &chan.context,
Channel::UnfundedOutboundV1(chan) => &chan.context,
@ -1147,7 +1147,7 @@ impl<'a, SP: Deref> Channel<SP> where
}
}
pub fn context_mut(&'a mut self) -> &'a mut ChannelContext<SP> {
pub fn context_mut(&mut self) -> &mut ChannelContext<SP> {
match self {
Channel::Funded(ref mut chan) => &mut chan.context,
Channel::UnfundedOutboundV1(ref mut chan) => &mut chan.context,