[thin_check (rust)] Get SyncIoEngine working again.

This commit is contained in:
Joe Thornber
2020-08-10 08:59:02 +01:00
parent 08e3ea948e
commit f0df17af9e
4 changed files with 20 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ fn unpack(data: &[u8]) -> IResult<&[u8], Superblock> {
))
}
pub fn read_superblock<E: IoEngine>(engine: &E, loc: u64) -> Result<Superblock> {
pub fn read_superblock(engine: &dyn IoEngine, loc: u64) -> Result<Superblock> {
let mut b = Block::new(loc);
engine.read(&mut b)?;