Allow to build on Windows

Someone forgot to handle the non unix case for this match which prevented a build on windows.

A similar line already existed here in line 51 to 56.
5ad7850009/tokio-postgres/src/stream.rs
This commit is contained in:
Michael Niens
2018-08-26 00:06:42 +02:00
parent 4eecb59bf4
commit d6fd28d02f

View File

@@ -110,7 +110,14 @@ impl PollConnect for Connect {
params: state.params,
tls: state.tls,
})
}
},
#[cfg(not(unix))]
Host::Unix(_) => {
Err(Error::connect(io::Error::new(
io::ErrorKind::Other,
"unix sockets are not supported on this platform",
)))
},
}
}