fix: fix new warnings that cropped up

This commit is contained in:
Austin Bonander 2024-01-05 19:05:16 -08:00
parent 4c22994605
commit 7044a92858
2 changed files with 4 additions and 1 deletions

View File

@ -244,6 +244,8 @@ pub async fn connect_uds<P: AsRef<Path>, Ws: WithSocket>(
) -> crate::Result<Ws::Output> {
#[cfg(not(unix))]
{
drop((path, with_socket));
return Err(io::Error::new(
io::ErrorKind::Unsupported,
"Unix domain sockets are not supported on this platform",
@ -270,7 +272,7 @@ pub async fn connect_uds<P: AsRef<Path>, Ws: WithSocket>(
return Ok(with_socket.with_socket(stream));
}
#[cfg(not(feature = "_rt-async-std"))]
#[cfg(all(unix, not(feature = "_rt-async-std")))]
{
crate::rt::missing_rt((path, with_socket))
}

View File

@ -37,6 +37,7 @@ pub use copy::{CopyData, CopyDone, CopyFail, CopyResponse};
pub use data_row::DataRow;
pub use describe::Describe;
pub use execute::Execute;
#[allow(unused_imports)]
pub use flush::Flush;
pub use notification::Notification;
pub use parameter_description::ParameterDescription;