From 500fb281a078a05103c8c50a6f33309c2f6cf020 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 2 Dec 2015 11:53:11 +0100 Subject: [PATCH] JsonHeaderParser: Make spec optional --- src/storage/json/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }