Skip to content

Commit

Permalink
refactor: use IoBuf instead of IoBufMut in AsyncWriteRent
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Sep 9, 2024
1 parent bbc75f9 commit 9db8d76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monoio/src/io/async_write_rent.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::future::Future;

use crate::{
buf::{IoBuf, IoBufMut, IoVecBuf},
buf::{IoBuf, IoVecBuf},
BufResult,
};

Expand All @@ -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<T: IoBufMut>(
&self,
fn write_at<T: IoBuf>(
&mut self,
buf: T,
pos: usize,
) -> impl Future<Output = BufResult<usize, T>>;
Expand Down

0 comments on commit 9db8d76

Please sign in to comment.