diff --git a/src/storage/json/parser.rs b/src/storage/json/parser.rs index e0981a9d..fc663303 100644 --- a/src/storage/json/parser.rs +++ b/src/storage/json/parser.rs @@ -15,7 +15,7 @@ struct JsonHeaderParser<'a> { spec: &'a FileHeaderSpec, } -impl<'a> FileHeaderParser<'a> for JsonHeaderParser<'a> { +impl JsonHeaderParser { fn new(spec: &'a FileHeaderSpec) -> JsonHeaderParser<'a> { JsonHeaderParser { @@ -23,6 +23,10 @@ impl<'a> FileHeaderParser<'a> for JsonHeaderParser<'a> { } } +} + +impl FileHeaderParser for JsonHeaderParser { + fn read(&self, string: Option) -> Result {