diff --git a/src/storage/parser.rs b/src/storage/parser.rs index f470c779..8013ef97 100644 --- a/src/storage/parser.rs +++ b/src/storage/parser.rs @@ -13,7 +13,7 @@ pub struct ParserError { } impl ParserError { - fn new(sum: &'static str, text: String, idx: i32, expl: &'static str) -> ParserError { + pub fn new(sum: &'static str, text: String, idx: i32, expl: &'static str) -> ParserError { ParserError { summary: String::from(sum), parsertext: text, @@ -22,7 +22,7 @@ impl ParserError { } } - fn short(sum: &'static str, text: String, idx: i32) -> ParserError { + pub fn short(sum: &'static str, text: String, idx: i32) -> ParserError { ParserError { summary: String::from(sum), parsertext: text,