@@ -6035,8 +6035,7 @@ where
6035
6035
let peer_state_mutex =
6036
6036
peer_state_lock.get(&next_node_id).ok_or_else(|| APIError::ChannelUnavailable {
6037
6037
err: format!(
6038
- "Can't find a peer matching the passed counterparty node_id {}",
6039
- next_node_id
6038
+ "Can't find a peer matching the passed counterparty node_id {next_node_id}"
6040
6039
),
6041
6040
})?;
6042
6041
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -6047,8 +6046,7 @@ where
6047
6046
if !funded_chan.context.is_usable() {
6048
6047
return Err(APIError::ChannelUnavailable {
6049
6048
err: format!(
6050
- "Channel with id {} not fully established",
6051
- next_hop_channel_id
6049
+ "Channel with id {next_hop_channel_id} not fully established"
6052
6050
),
6053
6051
});
6054
6052
}
@@ -6058,23 +6056,23 @@ where
6058
6056
.unwrap_or(funded_chan.context.outbound_scid_alias())
6059
6057
} else {
6060
6058
return Err(APIError::ChannelUnavailable {
6061
- err: format!("Channel with id {} for the passed counterparty node_id {} is still opening.",
6062
- next_hop_channel_id, next_node_id)
6059
+ err: format!(
6060
+ "Channel with id {next_hop_channel_id} for the passed counterparty node_id {next_node_id} is still opening."
6061
+ )
6063
6062
});
6064
6063
}
6065
6064
},
6066
6065
None => {
6067
6066
let error = format!(
6068
- "Channel with id {} not found for the passed counterparty node_id {}",
6069
- next_hop_channel_id, next_node_id
6067
+ "Channel with id {next_hop_channel_id} not found for the passed counterparty node_id {next_node_id}"
6070
6068
);
6071
6069
let logger = WithContext::from(
6072
6070
&self.logger,
6073
6071
Some(next_node_id),
6074
6072
Some(*next_hop_channel_id),
6075
6073
None,
6076
6074
);
6077
- log_error!(logger, "{} when attempting to forward intercepted HTLC", error );
6075
+ log_error!(logger, "{error } when attempting to forward intercepted HTLC");
6078
6076
return Err(APIError::ChannelUnavailable { err: error });
6079
6077
},
6080
6078
}
0 commit comments