Fix compilation error on nightly rust (#8707)

On nightly rust passing `public_url` works but that breaks on stable. This works for both.
This commit is contained in:
David 2018-05-28 17:10:29 +02:00 committed by Niklas Adolfsson
parent 3b083d545d
commit ec9c6e9783
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}