Skip to content

Commit 786cf37

Browse files
committed
Remove unnecessary lifetime parameter
1 parent 087e20c commit 786cf37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channel.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1134,11 +1134,11 @@ pub(super) enum Channel<SP: Deref> where SP::Target: SignerProvider {
11341134
Funded(FundedChannel<SP>),
11351135
}
11361136

1137-
impl<'a, SP: Deref> Channel<SP> where
1137+
impl<SP: Deref> Channel<SP> where
11381138
SP::Target: SignerProvider,
11391139
<SP::Target as SignerProvider>::EcdsaSigner: ChannelSigner,
11401140
{
1141-
pub fn context(&'a self) -> &'a ChannelContext<SP> {
1141+
pub fn context(&self) -> &ChannelContext<SP> {
11421142
match self {
11431143
Channel::Funded(chan) => &chan.context,
11441144
Channel::UnfundedOutboundV1(chan) => &chan.context,
@@ -1147,7 +1147,7 @@ impl<'a, SP: Deref> Channel<SP> where
11471147
}
11481148
}
11491149

1150-
pub fn context_mut(&'a mut self) -> &'a mut ChannelContext<SP> {
1150+
pub fn context_mut(&mut self) -> &mut ChannelContext<SP> {
11511151
match self {
11521152
Channel::Funded(ref mut chan) => &mut chan.context,
11531153
Channel::UnfundedOutboundV1(ref mut chan) => &mut chan.context,

0 commit comments

Comments
 (0)