Skip to content

Commit 460db48

Browse files
committed
fix: compiler warning about unused variable
1 parent 8f13725 commit 460db48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connect_to_peers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ where
259259
peer.send(PeerMessage::ConnectionStatus(connection_status.into()))
260260
.await?;
261261
if let InternalConnectionStatus::Refused(reason) = connection_status {
262-
let refusal_reason = "Refusing incoming connection. Reason: {reason:?}";
262+
let refusal_reason = format!("Refusing incoming connection. Reason: {:?}", reason);
263263
warn!(refusal_reason);
264264
bail!(refusal_reason);
265265
}

0 commit comments

Comments
 (0)