@@ -11487,9 +11487,9 @@ where
11487
11487
// MUST send a warning and close the connection or send an error
11488
11488
// and fail the channel.
11489
11489
if !self.context.is_live() {
11490
- return Err(ChannelError::WarnAndDisconnect(format!(
11491
- "Splicing requested on a channel that is not live"
11492
- ))) ;
11490
+ return Err(ChannelError::WarnAndDisconnect(
11491
+ "Splicing requested on a channel that is not live".to_owned(),
11492
+ ));
11493
11493
}
11494
11494
11495
11495
// TODO(splicing): Once splice acceptor can contribute, check that inputs are sufficient,
@@ -11737,20 +11737,20 @@ where
11737
11737
let funding_negotiation_context = match &self
11738
11738
.pending_splice
11739
11739
.as_ref()
11740
- .ok_or(ChannelError::Ignore(format!( "Channel is not in pending splice")))?
11740
+ .ok_or(ChannelError::Ignore("Channel is not in pending splice".to_owned( )))?
11741
11741
.funding_negotiation
11742
11742
{
11743
11743
Some(FundingNegotiation::AwaitingAck(context)) => context,
11744
11744
Some(FundingNegotiation::ConstructingTransaction(_, _))
11745
11745
| Some(FundingNegotiation::AwaitingSignatures(_)) => {
11746
- return Err(ChannelError::WarnAndDisconnect(format!(
11747
- "Got unexpected splice_ack; splice negotiation already in progress"
11748
- ))) ;
11746
+ return Err(ChannelError::WarnAndDisconnect(
11747
+ "Got unexpected splice_ack; splice negotiation already in progress".to_owned(),
11748
+ ));
11749
11749
},
11750
11750
None => {
11751
- return Err(ChannelError::Ignore(format!(
11752
- "Got unexpected splice_ack; no splice negotiation in progress"
11753
- ))) ;
11751
+ return Err(ChannelError::Ignore(
11752
+ "Got unexpected splice_ack; no splice negotiation in progress".to_owned(),
11753
+ ));
11754
11754
},
11755
11755
};
11756
11756
@@ -11847,7 +11847,7 @@ where
11847
11847
let pending_splice = match self.pending_splice.as_mut() {
11848
11848
Some(pending_splice) => pending_splice,
11849
11849
None => {
11850
- return Err(ChannelError::Ignore(format!( "Channel is not in pending splice")));
11850
+ return Err(ChannelError::Ignore("Channel is not in pending splice".to_owned( )));
11851
11851
},
11852
11852
};
11853
11853
0 commit comments