From e8e82f684447ea277444dea2553c81eb9ca23581 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 9 Nov 2015 16:02:21 +0100 Subject: [PATCH] Make functions public --- src/storage/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,