Prettify host cast as str

This commit is contained in:
Juan Aguilar Santillana
2020-09-20 10:43:22 +00:00
parent 391a54aea1
commit a2ca75e9c4

View File

@@ -33,7 +33,7 @@ where
.unwrap_or(5432);
let hostname = match host {
Host::Tcp(host) => &**host,
Host::Tcp(host) => host.as_str(),
// postgres doesn't support TLS over unix sockets, so the choice here doesn't matter
#[cfg(unix)]
Host::Unix(_) => "",