Skip to content

Commit c9269c7

Browse files
committed
nit: solve clippy errors
1 parent 56c3a2a commit c9269c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

simln-lib/src/ldk_server.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ fn network_from_proto(value: i32) -> Result<Network, LightningError> {
251251
match value {
252252
0 => Ok(Network::Bitcoin),
253253
1 => Ok(Network::Testnet),
254-
2 => Err(LightningError::GetInfoError(format!(
255-
"testnet4 network is not supported"
256-
))),
254+
2 => Err(LightningError::GetInfoError(
255+
"testnet4 network is not supported".to_string(),
256+
)),
257257
3 => Ok(Network::Signet),
258258
4 => Ok(Network::Regtest),
259259
other => Err(LightningError::GetInfoError(format!(

0 commit comments

Comments
 (0)