From 608924c88cd1e9d62428c1e7470fc3eca6429e19 Mon Sep 17 00:00:00 2001 From: David Palm Date: Thu, 24 May 2018 15:29:14 +0200 Subject: [PATCH] Fix compilation error on nightly rust On nightly rust passing `public_url` works but that breaks on stable. This works for both. --- util/network-devp2p/src/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/network-devp2p/src/service.rs b/util/network-devp2p/src/service.rs index eb2e9685d42..1b46ca1ae33 100644 --- a/util/network-devp2p/src/service.rs +++ b/util/network-devp2p/src/service.rs @@ -32,7 +32,7 @@ impl IoHandler 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::::as_ref(public_url))); } *url = Some(public_url.to_owned()); }