diff --git a/crates/sel4-async/block-io/cpiofs/src/lib.rs b/crates/sel4-async/block-io/cpiofs/src/lib.rs index 07fda16af..d37e1711c 100644 --- a/crates/sel4-async/block-io/cpiofs/src/lib.rs +++ b/crates/sel4-async/block-io/cpiofs/src/lib.rs @@ -13,7 +13,7 @@ use core::mem; use hex::FromHex; use zerocopy::{AsBytes, FromBytes, FromZeroes}; -use sel4_async_block_io::ByteIO; +use sel4_async_block_io::{access::ReadOnly, ByteIO}; const CPIO_ALIGN: usize = 4; @@ -79,7 +79,7 @@ impl EntryLocation { self.offset } - async fn read_entry(&self, io: &T) -> Result { + async fn read_entry>(&self, io: &T) -> Result { let mut header = Header::new_zeroed(); io.read(self.offset().try_into().unwrap(), header.as_bytes_mut()) .await?; @@ -133,7 +133,7 @@ impl Entry { } } - async fn read_name(&self, io: &T) -> Result { + async fn read_name>(&self, io: &T) -> Result { let mut buf = vec![0; self.header().name_size()]; io.read(self.name_offset().try_into().unwrap(), &mut buf) .await?; @@ -154,7 +154,7 @@ pub struct Index { io: T, } -impl Index { +impl> Index { pub async fn create(io: T) -> Result { let mut entries = BTreeMap::new(); let mut location = EntryLocation::first();