Skip to content

Commit

Permalink
make Socket trait compatible with madsim
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Nov 1, 2024
1 parent a890c40 commit 0960678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-core/src/net/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::io::ReadBuf;

mod buffered;

pub trait Socket: Send + Sync + Unpin + 'static {
pub trait Socket: Send + Unpin + 'static {
fn try_read(&mut self, buf: &mut dyn ReadBuf) -> io::Result<usize>;

fn try_write(&mut self, buf: &[u8]) -> io::Result<usize>;
Expand Down

0 comments on commit 0960678

Please sign in to comment.