Skip to content

Commit 39500b8

Browse files
committed
Inline format args
1 parent 65c5ee5 commit 39500b8

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
@@ -4514,8 +4514,7 @@ where
45144514
let peer_state_mutex =
45154515
per_peer_state.get(peer_node_id).ok_or_else(|| APIError::ChannelUnavailable {
45164516
err: format!(
4517-
"Can't find a peer matching the passed counterparty node_id {}",
4518-
peer_node_id
4517+
"Can't find a peer matching the passed counterparty node_id {peer_node_id}",
45194518
),
45204519
})?;
45214520
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -4563,8 +4562,7 @@ where
45634562
} else {
45644563
Err(APIError::ChannelUnavailable {
45654564
err: format!(
4566-
"Channel with id {} not found for the passed counterparty node_id {}",
4567-
channel_id, peer_node_id
4565+
"Channel with id {channel_id} not found for the passed counterparty node_id {peer_node_id}",
45684566
),
45694567
})
45704568
}

0 commit comments

Comments
 (0)