Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 4843768

Browse files
dvdplmAndronik Ordian
authored andcommitted
Fix compilation error on nightly rust (#8707)
On nightly rust passing `public_url` works but that breaks on stable. This works for both.
1 parent ed073ea commit 4843768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/network-devp2p/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl IoHandler<NetworkIoMessage> for HostHandler {
3232
if let NetworkIoMessage::NetworkStarted(ref public_url) = *message {
3333
let mut url = self.public_url.write();
3434
if url.as_ref().map_or(true, |uref| uref != public_url) {
35-
info!(target: "network", "Public node URL: {}", Colour::White.bold().paint(public_url.as_ref()));
35+
info!(target: "network", "Public node URL: {}", Colour::White.bold().paint(AsRef::<str>::as_ref(public_url)));
3636
}
3737
*url = Some(public_url.to_owned());
3838
}

0 commit comments

Comments
 (0)