diff --git a/src/storage/json/parser.rs b/src/storage/json/parser.rs index b2ea1e1d..c813e9c5 100644 --- a/src/storage/json/parser.rs +++ b/src/storage/json/parser.rs @@ -11,13 +11,13 @@ use super::super::parser::{FileHeaderParser, ParserError}; use super::super::file::{FileHeaderSpec, FileHeaderData}; -struct JsonHeaderParser<'a> { - spec: &'a FileHeaderSpec, +pub struct JsonHeaderParser { + spec: Option, } impl JsonHeaderParser { - fn new(spec: &'a FileHeaderSpec) -> JsonHeaderParser<'a> { + pub fn new(spec: Option) -> JsonHeaderParser { JsonHeaderParser { spec: spec }