From 565b375e9fff25f3327e2c45dd6f7d770c92465d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 6 Jan 2016 17:31:37 +0100 Subject: [PATCH] Notes: Switch from JSON in header to YAML Interestingly, I'm backwards compatible as it seems. The JSON can be parsed by the YamlParser still... nice! --- src/module/notes/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/module/notes/mod.rs b/src/module/notes/mod.rs index e0e107a3..17830890 100644 --- a/src/module/notes/mod.rs +++ b/src/module/notes/mod.rs @@ -12,7 +12,7 @@ use module::Module; use runtime::Runtime; use storage::file::File; use storage::parser::Parser; -use storage::json::parser::JsonHeaderParser; +use storage::yaml::parser::YamlHeaderParser; use module::helpers::cli::create_tag_filter; use module::helpers::cli::create_hash_filter; use module::helpers::cli::create_text_header_field_grep_filter; @@ -21,7 +21,7 @@ use module::helpers::cli::CliFileFilter; pub struct Notes<'a> { rt: &'a Runtime<'a>, - parser: Parser, + parser: Parser, } impl<'a> Notes<'a> { @@ -29,7 +29,7 @@ impl<'a> Notes<'a> { pub fn new(rt: &'a Runtime<'a>) -> Notes<'a> { Notes { rt: rt, - parser: Parser::new(JsonHeaderParser::new(None)), + parser: Parser::new(YamlHeaderParser::new(None)), } }