Make functions public

This commit is contained in:
Matthias Beyer 2015-11-09 16:02:21 +01:00
parent fd35a00381
commit e8e82f6844

View file

@ -13,7 +13,7 @@ pub struct ParserError {
} }
impl 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 { ParserError {
summary: String::from(sum), summary: String::from(sum),
parsertext: text, 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 { ParserError {
summary: String::from(sum), summary: String::from(sum),
parsertext: text, parsertext: text,