Skip to content

Commit

Permalink
fix: fix new warnings that cropped up
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander committed Jan 6, 2024
1 parent 4c22994 commit 7044a92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sqlx-core/src/net/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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))
}
Expand Down
1 change: 1 addition & 0 deletions sqlx-postgres/src/message/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7044a92

Please sign in to comment.