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:
parent
3b083d545d
commit
ec9c6e9783
@ -32,7 +32,7 @@ impl IoHandler<NetworkIoMessage> for HostHandler {
|
|||||||
if let NetworkIoMessage::NetworkStarted(ref public_url) = *message {
|
if let NetworkIoMessage::NetworkStarted(ref public_url) = *message {
|
||||||
let mut url = self.public_url.write();
|
let mut url = self.public_url.write();
|
||||||
if url.as_ref().map_or(true, |uref| uref != public_url) {
|
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());
|
*url = Some(public_url.to_owned());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user