Skip to content

Commit

Permalink
Fix compilation error on nightly rust (openethereum#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 VladLupashevskyi committed Jun 1, 2018
1 parent df39c50 commit 710c06e
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 710c06e

Please sign in to comment.