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:
@@ -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",
|
||||
)))
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user