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

Commit

Permalink
Fix compilation error on nightly rust (#8707)
Browse files Browse the repository at this point in the history
On nightly rust passing `public_url` works but that breaks on stable. This works for both.
  • Loading branch information
dvdplm authored and niklasad1 committed May 28, 2018
1 parent 3b083d5 commit ec9c6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/network-devp2p/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl IoHandler<NetworkIoMessage> for HostHandler {
if let NetworkIoMessage::NetworkStarted(ref public_url) = *message {
let mut url = self.public_url.write();
if url.as_ref().map_or(true, |uref| uref != public_url) {
info!(target: "network", "Public node URL: {}", Colour::White.bold().paint(public_url.as_ref()));
info!(target: "network", "Public node URL: {}", Colour::White.bold().paint(AsRef::<str>::as_ref(public_url)));
}
*url = Some(public_url.to_owned());
}
Expand Down

0 comments on commit ec9c6e9

Please sign in to comment.