[thin_check (rust)] walk devices tree.

This commit is contained in:
Joe Thornber
2020-08-03 16:22:08 +01:00
parent 1368227a71
commit f56ea2d031
3 changed files with 105 additions and 41 deletions

View File

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