Make functions public
This commit is contained in:
parent
fd35a00381
commit
e8e82f6844
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue