Skip to content

Commit

Permalink
Remove unnecessary lifetime parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jkczyz committed Jan 9, 2025
1 parent ee76e71 commit 9a3315d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 9a3315d

Please sign in to comment.