make Snapshot public

This commit is contained in:
soruh 2023-08-13 21:45:18 +02:00
parent f643be2e99
commit fd6883f28e

View File

@ -292,7 +292,7 @@ impl Default for Header {
}
}
struct Snapshot<R> {
pub struct Snapshot<R> {
root: FilePointer<R>,
map: Mmap,
}
@ -324,7 +324,7 @@ pub struct Reader<R> {
}
impl<R> Reader<R> {
fn get(&self) -> Arc<Snapshot<R>> {
pub fn get(&self) -> Arc<Snapshot<R>> {
self.state.get()
}
}