mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
fix: fix new warnings that cropped up
This commit is contained in:
parent
4c22994605
commit
7044a92858
@ -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))
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user