Skip to content
Snippets Groups Projects
Verified Commit b1d7e92b authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Fix receiver type in Scheme{Sync,Async}::read

parent 9d857b67
No related branches found
No related tags found
2 merge requests!6Redesign API to fix (most) soundness and add async support.,!5Draft: Improved async-capable interface
......@@ -239,7 +239,7 @@ pub trait SchemeAsync {
Err(Error::new(EBADF))
}
async fn read(&self, id: usize, buf: &mut [u8], offset: u64, fcntl_flags: u32, ctx: &CallerCtx) -> Result<usize> {
async fn read(&mut self, id: usize, buf: &mut [u8], offset: u64, fcntl_flags: u32, ctx: &CallerCtx) -> Result<usize> {
Err(Error::new(EBADF))
}
......@@ -326,12 +326,10 @@ pub trait SchemeSync {
Err(Error::new(EBADF))
}
fn read(&self, id: usize, buf: &mut [u8], offset: u64, fcntl_flags: u32, ctx: &CallerCtx) -> Result<usize> {
fn read(&mut self, id: usize, buf: &mut [u8], offset: u64, fcntl_flags: u32, ctx: &CallerCtx) -> Result<usize> {
Err(Error::new(EBADF))
}
fn write(&mut self, id: usize, buf: &[u8], offset: u64, fcntl_flags: u32, ctx: &CallerCtx) -> Result<usize> {
Err(Error::new(EBADF))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment