diff --git a/src/mount/projfs.rs b/src/mount/projfs.rs index 637a451e..57d4adf9 100644 --- a/src/mount/projfs.rs +++ b/src/mount/projfs.rs @@ -57,7 +57,8 @@ impl StoredFileReader { }) .map::, _>(move |entry| { let content = stored_tree - .block_dir() + .archive + .block_dir .get_block_content(&entry.hash, monitor.clone())?; Ok(content.slice((entry.start as usize)..(entry.start + entry.len) as usize)) diff --git a/src/stored_tree.rs b/src/stored_tree.rs index b336cee7..a17977e2 100644 --- a/src/stored_tree.rs +++ b/src/stored_tree.rs @@ -29,8 +29,8 @@ use crate::*; /// Read index and file contents for a version stored in the archive. #[derive(Debug)] pub struct StoredTree { - band: Band, - archive: Archive, + pub(crate) band: Band, + pub(crate) archive: Archive, } impl StoredTree {