diff --git a/monoio/src/io/async_write_rent.rs b/monoio/src/io/async_write_rent.rs index 3c8c70bb..c471296d 100644 --- a/monoio/src/io/async_write_rent.rs +++ b/monoio/src/io/async_write_rent.rs @@ -1,7 +1,7 @@ use std::future::Future; use crate::{ - buf::{IoBuf, IoBufMut, IoVecBuf}, + buf::{IoBuf, IoVecBuf}, BufResult, }; @@ -23,8 +23,8 @@ pub trait AsyncWriteRent { /// AsyncWriteRentAt: async write with a ownership of a buffer and a position pub trait AsyncWriteRentAt { /// Write buf at given offset - fn write_at( - &self, + fn write_at( + &mut self, buf: T, pos: usize, ) -> impl Future>;