We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
host
1 parent 391a54a commit a2ca75eCopy full SHA for a2ca75e
1 file changed
tokio-postgres/src/connect.rs
@@ -33,7 +33,7 @@ where
33
.unwrap_or(5432);
34
35
let hostname = match host {
36
- Host::Tcp(host) => &**host,
+ Host::Tcp(host) => host.as_str(),
37
// postgres doesn't support TLS over unix sockets, so the choice here doesn't matter
38
#[cfg(unix)]
39
Host::Unix(_) => "",
0 commit comments