Skip to content

Commit 867bd6e

Browse files
committed
Inline format args
1 parent 6406191 commit 867bd6e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4517,8 +4517,7 @@ where
45174517
let peer_state_mutex =
45184518
per_peer_state.get(peer_node_id).ok_or_else(|| APIError::ChannelUnavailable {
45194519
err: format!(
4520-
"Can't find a peer matching the passed counterparty node_id {}",
4521-
peer_node_id
4520+
"Can't find a peer matching the passed counterparty node_id {peer_node_id}",
45224521
),
45234522
})?;
45244523
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -4566,8 +4565,7 @@ where
45664565
} else {
45674566
Err(APIError::ChannelUnavailable {
45684567
err: format!(
4569-
"Channel with id {} not found for the passed counterparty node_id {}",
4570-
channel_id, peer_node_id
4568+
"Channel with id {channel_id} not found for the passed counterparty node_id {peer_node_id}",
45714569
),
45724570
})
45734571
}

0 commit comments

Comments
 (0)