summaryrefslogtreecommitdiff
path: root/monoio/src/net/unix/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'monoio/src/net/unix/stream.rs')
-rw-r--r--monoio/src/net/unix/stream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/monoio/src/net/unix/stream.rs b/monoio/src/net/unix/stream.rs
index 4cb61e5..89b1b1c 100644
--- a/monoio/src/net/unix/stream.rs
+++ b/monoio/src/net/unix/stream.rs
@@ -369,7 +369,7 @@ impl tokio::io::AsyncWrite for UnixStream {
buf: &[u8],
) -> std::task::Poll<Result<usize, io::Error>> {
unsafe {
- let raw_buf = crate::buf::RawBuf::new(buf.as_ptr() as *const u8, buf.len());
+ let raw_buf = crate::buf::RawBuf::new(buf.as_ptr(), buf.len());
let mut send = Op::send_raw(&self.fd, raw_buf);
let ret = ready!(crate::driver::op::PollLegacy::poll_legacy(&mut send, cx));